Bobbit6k
Bobbit6k
TTypebot
Created by Bobbit6k on 4/23/2024 in #help-and-questions
Override Value of a {{Variable}}
WHERE the script is done this way: class Greeting { constructor(name) { this.name = name; } greet() { return Hello, ${this.name}!; } }
8 replies
TTypebot
Created by Bobbit6k on 4/23/2024 in #help-and-questions
Override Value of a {{Variable}}
One solution that i found is to include the script in the head (via settings) and assign the value of a new var like this {{Hello}} = new Greeting({{Nome}}).greet();
8 replies
TTypebot
Created by Bobbit6k on 4/23/2024 in #help-and-questions
Override Value of a {{Variable}}
Thanks @Baptiste I need the script executed server side, right? The goal here was executing it client side and then assign to a variable.
8 replies
TTypebot
Created by Bobbit6k on 4/23/2024 in #help-and-questions
Override Value of a {{Variable}}
added the flow of the bot
8 replies