roadmap icon indicating copy to clipboard operation
roadmap copied to clipboard

Create/update form for phases and questions clears filled in form when validation fails

Open nicolasfranck opened this issue 4 years ago • 1 comments

Please complete the following fields as applicable:

What version of the DMPRoadmap code are you running? (e.g. v2.2.0)

3.0.2

Expected behaviour:

In the org-admin, when you create a template, often you get some validation errors when creating things like phases or questions. When that fails, it should not only show the errors, but also keep the filled in form, so users can fix what was wrong. Possibly the wrong input should be marked red?

Actual behaviour:

The form is posted, and on validation error it is redirect to the form, a flash message is made and shown, but the form is empty again.

nicolasfranck avatar Jun 24 '21 13:06 nicolasfranck

maybe redirect with filled in parameters in the URL? A bit ugly, but I wouldn't know any other way. Although that would make it impossible to mark the input values as wrong if that were necessary.

nicolasfranck avatar Jun 24 '21 15:06 nicolasfranck