Skip to content

Can edit a picklist if it’s rendered as a text field in a subview #7579

@emenslin

Description

@emenslin

Describe the bug
A read only picklist can be added to a subview as a text field instead of a combobox, which means from this subview the user can type in the field which will then cause an error in the forms. This is likely possible using conditional forms or different view definitions, but I found it through independent subviews. You are still able to edit the base form so this is not urgent, but the field will say "(current, invalid value)" which could cause some confusion.

To Reproduce
Steps to reproduce the behavior:

  1. Find or create a read only picklist and add it to a field
  2. Go to the form definition for the base table
  3. Set the field to a combobox
  4. Go to a subview form definition of the base table
  5. Add/edit the field to be rendered as a text field
  6. Go to the subview in the forms
  7. Type something in the field
  8. Save
  9. Go to the base form and see error

Expected behavior
Users should not be able to edit a read only picklists.

Screenshots

Schema config for the picklist:
Image

CO form definition:

Image

CO subview form definition:

Image

Subview behavior:

12-02_09.51.mp4

Please fill out the following information manually:

Metadata

Metadata

Assignees

No one assigned

    Labels

    2 - FormsIssues that are related to the form system

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions