Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation error when editing form entry with checkbox list #960

Closed
tenshi04 opened this issue Jan 25, 2023 · 1 comment
Closed

Validation error when editing form entry with checkbox list #960

tenshi04 opened this issue Jan 25, 2023 · 1 comment

Comments

@tenshi04
Copy link

A brief description of the issue goes here.

When going to the backoffice to edit a form entry that contains a checkbox list, a validation error occurs when trying to save the entry, even if no edits were done. This error should not be displayed.

Reproduction

Bug summary

The validation is not working correctly and is displaying the message below.
ERROR Message: Unexpected value: 'Value 1, Value 4'. Expected one of these: 'Value 1', 'Value 2', 'Value 3', 'Value 4'

Specifics

Umbraco 8.18.5
Umbraco Forms 8.13.5

Steps to reproduce

  1. Create a new form
  2. Add a new question using a Multiple Choice control.
  3. Add some prevalues to the control ex) Value 1, Value 2, Value 3, Value 4
  4. Save the form
  5. View the form on an umbraco page and select a few values (ex. Value 1 and Value 3) from the checkbox list (multiple choice control)
  6. Submit the form
  7. Login to the back office, go to the form and view the entries. Edit the entry that was just submitted.
  8. Do not do any edits, but just click save.
  9. A validation error will be displayed.

image

  1. ERROR Message: Unexpected value: 'Value 1, Value 4'. Expected one of these: 'Value 1', 'Value 2', 'Value 3', 'Value 4'

Expected result

The entry should save without issue as the values are valid.

Actual result

The validation is not working correctly and is displaying the message below.
ERROR Message: Unexpected value: 'Value 1, Value 4'. Expected one of these: 'Value 1', 'Value 2', 'Value 3', 'Value 4'

@AndyButland
Copy link

Thanks for reporting this issue. We can replicate and have found a fix, which will be released in the next patch updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants