Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form builder - Datetime field empties itself when a invalid date is entered #3755

Closed
Assignees
Labels
bug Something isn't working topic: form renderer
Milestone

Comments

@vaszig
Copy link
Contributor

vaszig commented Jan 10, 2024

Occurs when you set a validation, e.g. date/datetime must be in the future and then enter an invalid value. The date field still displays the invalid value and shows the validation error, the datetime field removes the invalid value and displays no validation error.

The behaviour is consistent with the old form builder

Part of #3733

@vaszig vaszig added triage Issue needs to be validated. Remove this label if the issue considered valid. topic: form builder labels Jan 10, 2024
@joeribekker joeribekker removed the triage Issue needs to be validated. Remove this label if the issue considered valid. label Jan 15, 2024
@joeribekker joeribekker added this to the Release 2.5.0 milestone Jan 15, 2024
@SilviaAmAm
Copy link
Contributor

Steps to reproduce:

  • Create a form in the admin with:
    • A date component with validation 'min value' => in the future
    • A datetime component with validation 'min value' => in the future
  • In the SDK, fill in the form.
    • For both components, enter a date/datetime in the past
    • Observe that the date component shows a validation error, while the datetime component empties itself.

The behaviour for the date component was fixed in this issue: #3443

SilviaAmAm added a commit to open-formulieren/open-forms-sdk that referenced this issue Jan 18, 2024
If the datetime is entered with the keyboard instead of the widget, no validation was being performed. This adds the validation in the same way as for the date component (see open-formulieren/open-forms#3443)
SilviaAmAm added a commit to open-formulieren/open-forms-sdk that referenced this issue Jan 18, 2024
SilviaAmAm added a commit to open-formulieren/open-forms-sdk that referenced this issue Jan 18, 2024
If the datetime is entered with the keyboard instead of the widget, no validation was being performed. This adds the validation in the same way as for the date component (see open-formulieren/open-forms#3443)
SilviaAmAm added a commit to open-formulieren/open-forms-sdk that referenced this issue Jan 18, 2024
SilviaAmAm added a commit that referenced this issue Jan 18, 2024
SilviaAmAm added a commit that referenced this issue Jan 18, 2024
SilviaAmAm added a commit to open-formulieren/open-forms-sdk that referenced this issue Jan 19, 2024
If the datetime is entered with the keyboard instead of the widget, no validation was being performed. This adds the validation in the same way as for the date component (see open-formulieren/open-forms#3443)
SilviaAmAm added a commit to open-formulieren/open-forms-sdk that referenced this issue Jan 19, 2024
SilviaAmAm added a commit to open-formulieren/types that referenced this issue Jan 22, 2024
Related to open-formulieren/open-forms#3755 where the widget needs to have a configuration option set so that invalid values are not automatically removed from the widget
SilviaAmAm added a commit to open-formulieren/types that referenced this issue Jan 22, 2024
Related to open-formulieren/open-forms#3755 where the widget needs to have a configuration option set so that invalid values are not automatically removed from the widget
SilviaAmAm added a commit to open-formulieren/open-forms-sdk that referenced this issue Jan 22, 2024
SilviaAmAm added a commit to open-formulieren/types that referenced this issue Jan 23, 2024
@SilviaAmAm
Copy link
Contributor

Work in the form builder still needs to happen

@SilviaAmAm SilviaAmAm reopened this Jan 23, 2024
SilviaAmAm added a commit to open-formulieren/formio-builder that referenced this issue Jan 23, 2024
SilviaAmAm added a commit to open-formulieren/formio-builder that referenced this issue Jan 23, 2024
@SilviaAmAm
Copy link
Contributor

Upgrading form builder in backend needs to be done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment