Form data not retained upon submit if required field is empty
Thanks so much for reaching out!
I see what you mean about the form resetting itself if a required field is left blank. You can add the snippet provided in the following forum thread to make the event description optional:
In addition, you can optionally add/change the error message when a required field is left blank and the form is reset, to alert submitters that the date is reset (or something similar):
Let me know how it goes and if you have any other questions on this topic!
Thank you for the reply. For now I am just going to use the first filter you referenced, to make the Event Description not required. I would prefer to keep that field required, but if the datepickers are not going to retain their data if a required field is left empty, that’s a choice I have to make.
Upon further review, I found that this is a known bug:
Is there any ETA for resolving this issue? Once it’s resolved I can then remove this filter, to make the Event Description/post_content required again.
Thank you for your time.
The issue that you referenced is currently being worked on. I have added this thread to the bug report so that you will be notified when a fix has become available. Unfortunately, I cannot give you an exact ETA at this time, but I can assure you that work has begun on this issue.
Thank you for your patience in this process. Please let me know if you have any other questions in the meantime.
Just wanted to share with you that a new maintenance release is out, including a fix for this issue.
Find out more about this release → https://theeventscalendar.com/maintenance-release-for-the-week-of-12-feburary-2018/
Update the plugins and let us know if the fix works for your site,
Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team
The topic ‘Form data not retained upon submit if required field is empty’ is closed to new replies.