how to edit a variable #1923
-
hi, I am trying to figure out how to edit a variable to replace spaces with '%20' to allow for google search |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I'm sorry to inform you that I just checked the code, and we can't directly implement the effect you want in the expression. However, there is a slightly more roundabout way to achieve it. Before the search, add a "javascript block" and then obtain the variable in the code. For example: const newValue = automaRefData('variables', 'your variable key').replace(' ', '%20')
automaSetVariable('your variable key', newValue) After that, you can use the expression |
Beta Was this translation helpful? Give feedback.
I'm sorry to inform you that I just checked the code, and we can't directly implement the effect you want in the expression. However, there is a slightly more roundabout way to achieve it. Before the search, add a "javascript block" and then obtain the variable in the code. For example:
After that, you can use the expression
{{balabala}}
in the input box.