Route data to the Addon's Input - string instead of id
Options
![rozza](https://us.v-cdn.net/6037124/uploads/userpics/7ZYO2WN7REUX/nKR3NEFROLOUV.jpg)
rozza
Member β
Hello π
Is there a way to pass a string value as input to an addon?
A static string works, but I want to pass a dynamic text value, the add on route dropdown defaults to only integer / id type.
I realise an ID would be better / quicker, but what I'm trying will do the job easily.
Thanks for any insight π
Tagged:
Best Answers
-
One way to pass a dynamic text value into a static string is by using the
sprintf
filter. Just insert%s
in the static text and apply thesprintf
filter to it, so you can replace%s
with any variable value (converted to text first, of course). -
@arturosanz Thanks for your input. A neat suggestion.
I was trying to addon to an aggregated query, which forces the need for a number value to be passed.
Thank you!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?β? Find an Expert
- 348 βOther questions
- 35 ? Security
- 22 βοΈ Snippets
- 19 ? Showcase
- 7 ?οΈ ο»Ώ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback