AutomaApp / automa

A browser extension for automating your browser by connecting blocks
https://www.automa.site
Other
11.47k stars 1.24k forks source link

how can i fill value to textarea from variables data? #1821

Open greysky opened 2 weeks ago

greysky commented 2 weeks ago

javascript block:

automaSetVariable('my_comments', 'hello world') automaNextBlock()

form block:

{{variables.my_comments}}

above is my code , but it doesn't work.

ChooseMath commented 2 weeks ago

Hi there, I just tried your code and was able to successfully retrieve the variable data. Here are a few things to check:

-Ensure the JavaScript Block Executes First: Make sure the JavaScript block that sets the variable my_comments is executed before the form block. The order of execution is crucial.

-Create a New Tab Block: Did you create a new tab block and select the appropriate context where you want to assert the data in the form block? This step is important to ensure the variable is available in the correct context.

Hope this helps!