type conversion Should be easy...
Options
David Richardson
Member ✭
When I submit a form from Webflow to update a record, it's sent as JSON - a string. The value I want to isolate is the id, like "20" - a string.
To use the string "id" to locate the record to update in my table, I need to convert it to a type int. It's not clear in the Xano function operations where such a conversion is available.
Seems like that is pretty basic. I think the JavaScript is id = Number(id) but just don't know where to look. Is it a custom function?
To use the string "id" to locate the record to update in my table, I need to convert it to a type int. It's not clear in the Xano function operations where such a conversion is available.
Seems like that is pretty basic. I think the JavaScript is id = Number(id) but just don't know where to look. Is it a custom function?
Comments
-
This is a conversion filter... (Add Filter > Conversion > to_int). You can also just type in to_int you will find it right away
-
Thanks Michael. After I wrote the question I remembered the procedure Prakash set up in the WMX part 2. Since I have webhooks.site I can see the payload "data" Webflow uses. So I probably just need to put this in my custom API anyway. I can insert the conditional to test for the form name (from Webflow). I'd just been challenged by these dusty old cobwebs between my ears. Hope y'all doing well.
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