Error Handling Issue in Frontend Form #262
Unanswered
outline4
asked this question in
Questions & Answers
Replies: 2 comments
-
I can confirm the same behaviour! To prevent this, we've split up the form into multiple steps, so only the data of the current step isn't saved in case of an error. It's not perfect, but at least we don't lose that much data. Hope this gets fixed soon! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sorry for the delay @outline4, If I understand correctly, I think the issue is that you would need the form to submit via AJAX instead? This would preserve the values of the other fields without losing them. 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug or issue you're experiencing
Steps to reproduce
This happens with regular fields.
For instance: my field "event_meeting_point" has a limit of 128 Characters.
<input type="text" name="fields[event_meeting_point]" id="event_meeting_point" value="{{ event.event_meeting_point }}">
If I enter more characters than allowed by the field, the following error is correctly displayed:
"Meeting point has a maximum of 128 Characters"
I find myself with empty fields since the last sucessful save.
Expected behavior
It stores the values without errors and only then display the error. It should even preserve the value of the erronous field.
Craft & Plugin Info (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions