-
|
I created a user script roughly based on the Book and Movies scripts that asks the user for a Place Name and UK postcode then sends that to a web API to get lat-long in JSON format that would go into the new template via the Things I have triedI followed the macro examples and used this as my user script: The macro calls the API and console logs the result showing it gets the data from the API. But then I get asked for all the data variables I defined in the macro? See images: Context - config:My Javascript is VERY rusty so I’m not sure if I mis-configured, missed, broke something or even discovered a bug? Can anyone see any problems? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I found the solution to this. My template tags had a space after the By removing the space it now works: |
Beta Was this translation helpful? Give feedback.
-
|
Closing this out - your fix was right for the version at the time. Worth noting for anyone landing here later: current QuickAdd trims whitespace inside the token, so |
Beta Was this translation helpful? Give feedback.




I found the solution to this.
My template tags had a space after the
VALUE:part like so:{{VALUE: postcode}}.By removing the space it now works:
{{VALUE:postcode}}