You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to display the current value of a stored variable on a "custom component" when building an extension?
When following the instructions here: https://docs.automa.site/extension-builder/global-variables.html, I pasted the following code into the JavaScript box of a custom component, but it did not seem to work. I substituted the word "name" with the actual name of the variable, but the variable does not show. Do I need to add any code to the html box also?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to display the current value of a stored variable on a "custom component" when building an extension?
When following the instructions here: https://docs.automa.site/extension-builder/global-variables.html, I pasted the following code into the JavaScript box of a custom component, but it did not seem to work. I substituted the word "name" with the actual name of the variable, but the variable does not show. Do I need to add any code to the html box also?
const variables = await $helper.storage.variables.get('name'); console.log(variables)
Beta Was this translation helpful? Give feedback.
All reactions