Skip to content

how to edit a variable #1923

Answered by bingren-yd
justwonderin asked this question in Q&A
Mar 2, 2025 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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 {{balabala}} in the input box.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bingren-yd
Comment options

@bingren-yd
Comment options

Answer selected by justwonderin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants