I am using Javascript to insert some text into a multi-line input.
The text is visible, however Bubble thinks that the input is empty, which means I can’t do anything with it: I can’t validate it, I can’t save that data, I can’t send it in an email. It’s completely invisible to Bubble.
If the user clicks in the input and inserts a character, then suddenly Bubble “sees” it. However, setting and unsetting focus does not allow Bubble to see it.
Any workarounds to get Bubble to see the data that has been dynamically inserted via Javascript?
No, no need to save to database, the JStoBubble element is like a generic-ish Element plugin. You drop in on the page, configure its output by type (because Bubble plugin outputs require us to specify their type).
Then, by calling a function with the name you specify in JStoBubble, you can send values from Run JavaScript to the JStoBubble element.