Skip to content

Multiple choice question gives 'Unexpected value' #215

@HalldorLyngmo

Description

@HalldorLyngmo

When using a Multiple choice data type it will start giving errors if it's not answered, even if the question is not mandatory.

image

If there is a comma in the answer, it will also break.
image

Reproduction

If you're filing a bug, please describe how to reproduce it. Include as much
relevant information as possible, such as:

Bug summary

Since the lates update to 7.1.2 there seems to have been some changes to how Forms expects the answers. They have also become mandatory for some reason.

Specifics

Tested on Umbraco Cloud.
Umbraco 7.14.0
Forms 7.1.2
Google Chrome
Version 76.0.3809.132 (Official Build) (64-bit)

Not checked in other browsers

Steps to reproduce

  1. Create a form and use the Multiple choice data type.

  2. Add some pre-values. Don't check Field is mandatory.
    image

  3. Save it and try to submit the form
    image

  4. Fails unless you pick something

Expected result

Should not have pick anything, the form should submit.

Actual result

Can't submit unless I pick and if there is a comma in the pre value then you can't submit.


This item has been added to our backlog AB#2499

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions