Closed st-anton closed 11 years ago
This is captured perfectly in the frontend edit media file: a popup appears saying something like invalid form
I think the code components\com_biblestudy\views\mediafileform\tmpl\edit.php lines 85 to 192 can be copied (with some modifications)
The date picker also does not seem to work.
It only gives a message: "Please fill out ..." The code is exactly the same as the media files date, except the name of the field is different of course. Got me stumped.
@tomfuller2 Could this be a JavaScript error?
I fixed this issue by placing some javascript code from the mediafileform into the messageform to send up an error but not delete the fields. I also copied some code from mediafileform to messageform to get the calendar to work. https://github.com/tomfuller2/Joomla-Bible-Study/commit/932bf7d040e3a9d12f703542be61ca023c129710
Adding a new study in the frontend, but forget to fill in a compulsory field, e.g. the date When pressing save, it complains about forgotten date - fine. But all the other entries are dropped as well, so you can start again to fill in everything.
In the backend, you even cannot press 'save' as long as any compulsory field is missing.