Edit user - enum

Options
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]

Comments

  • Ray Deck
    Ray Deck Trusted Xano Expert ✭✭✭
    Options
    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?
  • Thomas Bonfils
    Options
    Hey Ray, it was i did "financement"[CleanShot 2022-07-01 at 12.52.17@2x.png]
  • Ray Deck
    Ray Deck Trusted Xano Expert ✭✭✭
    Options
     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. 
  • Thomas Bonfils
    Options
     No actif & pause are boolean so i don't need quotation marks

    Still not working 😟
  • Thomas Bonfils
    Options
     No actif & pause are boolean so i don't need quotation marks

    Still not working 😟
  • Ray Deck
    Ray Deck Trusted Xano Expert ✭✭✭
    Options
    I hear that about being a checkbox, but AFAIK "oui" is not a boolean value in JSON.
  • Thomas Bonfils
    Options
    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