All selected value must be present in the choiceValues array, but value was 2;4 and choiceValues was 4;3

hi team.

I have a requirement as:

I have to create data using some dropdown values and after creation of that data user can delete that data from where that drop data is coming and once data is deleted from frontend then

when user tries to edit that created data then error throws as:

since value of that dropdown is deleted by the user then while editing how to handle this error

please suggest any answer 

   

  Discussion posts and replies are publicly visible

Parents Reply
  • can you please suggest by coding

    I don't have time to assemble a working example at the moment (but if i get a chance i can look into it soon) - but in short, you need to learn to write manual code that prepares the necessary on-form local variables to allow you to do this.  For instance, you would query the default choices into an initial local variable.  Then you would declare another local variable that you will use to actually populate the choices, except in that local variable you check whether or not the existing options include all current selections (including any that may have been deleted), and if so, append those values to the set.

Children
No Data