Edit user - enum
Options
Thomas Bonfils
Member ✭
Hi,
When i want to edit a user, i display a dropdown with enum values.
I put the selected value in a state (in bubble) and when the but edit is click i launch a workflow and put select value in my field.
But i have an error :
Temporary error connecting to Xano - EDIT user (raw message: {"message":"Error parsing JSON: Syntax error\n\n{\n \u0022email\u0022: \email@example.com\u0022,\n \u0022financement\u0022: \u0022null\u0022,\n \u0022firstname\u0022: \u0022Adela\u0022,\n \u0022lastname\u0022: \u0022Sadoudi\u0022,\n \u0022phone\u0022: \u0022+01010101\u0022,\n \u0022actif\u0022: oui,\n \u0022job\u0022: \u0022null\u0022,\n \u0022pause\u0022: oui\n}"})
I think i used the wrong way to edit because it's a list.
What i need to do to edit the new value in my enum
[CleanShot 2022-07-01 at 12.52.17@2x.png]
[CleanShot 2022-07-01 at 12.51.58@2x.png][CleanShot 2022-07-01 at 12.51.49@2x.png]
When i want to edit a user, i display a dropdown with enum values.
I put the selected value in a state (in bubble) and when the but edit is click i launch a workflow and put select value in my field.
But i have an error :
Temporary error connecting to Xano - EDIT user (raw message: {"message":"Error parsing JSON: Syntax error\n\n{\n \u0022email\u0022: \email@example.com\u0022,\n \u0022financement\u0022: \u0022null\u0022,\n \u0022firstname\u0022: \u0022Adela\u0022,\n \u0022lastname\u0022: \u0022Sadoudi\u0022,\n \u0022phone\u0022: \u0022+01010101\u0022,\n \u0022actif\u0022: oui,\n \u0022job\u0022: \u0022null\u0022,\n \u0022pause\u0022: oui\n}"})
I think i used the wrong way to edit because it's a list.
What i need to do to edit the new value in my enum
[CleanShot 2022-07-01 at 12.52.17@2x.png]
[CleanShot 2022-07-01 at 12.51.58@2x.png][CleanShot 2022-07-01 at 12.51.49@2x.png]
Comments
-
It looks like your enum is a string value, which needs to be wrapped in quotation marks like your other fields (see phone on the previous line).
Does trying that out help? -
Hey Ray, it was i did "financement"[CleanShot 2022-07-01 at 12.52.17@2x.png]
-
Forgive me, I wasn't quite able to parse the sentence. Did the solution help? If not, it could be because "actif" is still unwrapped.
-
No actif & pause are boolean so i don't need quotation marks
Still not working 😟 -
No actif & pause are boolean so i don't need quotation marks
Still not working 😟 -
I hear that about being a checkbox, but AFAIK "oui" is not a boolean value in JSON.
-
Ok, i find the solution, i was because my second workflow was to create a profil picture, but my field was empty ..
thanks for your help
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