Describe the bug
When adding a default value to a picklist using the visual editor, an invalid value like this is shown instead of the value you added:
Additionally, if a default value is removed from the xml, the visual editor does not update. If the form definition is changed in one of these ways, the change cannot be seen until either the visual editor or the form are reopened.
To Reproduce
Steps to reproduce the behavior:
Go to a form definition with a picklist
Add a valid default picklist value to the field using default="value" like this:
Describe the bug When adding a default value to a picklist using the visual editor, an invalid value like this is shown instead of the value you added:
Additionally, if a default value is removed from the xml, the visual editor does not update. If the form definition is changed in one of these ways, the change cannot be seen until either the visual editor or the form are reopened.
To Reproduce Steps to reproduce the behavior:
default="value"
like this:Expected behavior If a value added to the xml is valid for that picklist, the visual editor should update to show the correct value.
Screenshots
https://github.com/specify/specify7/assets/164079735/1332a9af-7371-497e-9bc0-16cacefe3954
Specify 7 System Information - 2024-06-07T16_52_51.868Z.txt
Please, also fill out the following information manually: