T
Typebot•4mo ago
Abdullah

Unable to access window inside text bubble

is window not accessible for inline javascript injection using text bubble Use case: multiple languages (if there is a better way let me know, currently i am setting a single variable using setblock and getting value to it but as you think, it is not efficient and clean at all)
No description
3 Replies
Abdullah
Abdullah•4mo ago
as an alternative to not have to access window for creating localization. I see that custom head code is available in the settings but it is not enabled in preview mode
No description
No description
Baptiste
Baptiste•4mo ago
That is expected The code is evaluated on server side If you need to have access to client-side objects, you need to do it with a Set variable block with the Execute on client option
Abdullah
Abdullah•4mo ago
thank you i already had that enabled. the issue was within the set variable code 😄 I managed to tackle this issue of not having to access window by creating a seperate typebot which i can jump to and out of to get my localized text