structor
structor copied to clipboard
Not possible to clear an ID once set
Describe the bug Create a new form and assign an id to it, then clear the field and try to click anywhere. You know get an error about the new blank value not passing the regex.
Id må være fra 1-64 tegn og kan kun inneholde bokstaver fra a-z, tall, - og .
To Reproduce Steps to reproduce the behavior:
- Create new form on https://formdesigner.helsenorgelab.no/
- Click the (i) to get to Skjemadetaljer
- Click the "Id" field, enter a value and exit the field
- Clear the Id field
- Observe an error text
Expected behavior Since an ID is optional, one should not validate blank strings.
Screenshots