Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Not possible to clear an ID once set #441

@fatso83

Description

@fatso83

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:

  1. Create new form on https://formdesigner.helsenorgelab.no/
  2. Click the (i) to get to Skjemadetaljer
  3. Click the "Id" field, enter a value and exit the field
  4. Clear the Id field
  5. Observe an error text

Expected behavior
Since an ID is optional, one should not validate blank strings.

Screenshots
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions