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](https://cdn.answeroverflow.com/1215597321656598569/image.png)
3 Replies
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](https://cdn.answeroverflow.com/1215598020951932969/image.png)
![No description](https://cdn.answeroverflow.com/1215598021254053948/image.png)
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
optionthank 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