I have JS code that captured something important for my application in a variable, now I need to save the data from that variable in a custom state so that I can do some workflow to save this in my database.
I searched the WEB but I’m having difficulty implementing this. Can anyone give me an example of how I can do it?
hypothetical situation:
var ID = 123456789;
I want to save “123456789” to a custom state so that as soon as this custom state is no longer empty, I can start a workflow to save “123456789” to my database. But I don’t know how to call some javascript function to save this to a custom state.
Then, in your custom HTML, do whatever calculation you need and then, you will call this function: bubble_fn_test (Whatever you named it above) - (I added a delay because otherwise, it doesn’t recognize the function):