I am adding a status change option via a LeightboxPrompt very similar to the Premium/Payments module.
In the form definition for one of the options I added a "datepicker" field and set5 rule for it to "required".
I noticed two issues I could not resolve:
- datepicker field is showing correctly and has a hint as normal but when clicked no calendar appears.
- when value left empty and form submitted there is no message that field is invalid, the leightbox just closes.
Please let me know if these are bugs or features 🙂
EDIT:
I just saw solution for second point here:
viewtopic.php?f=22&t=2499
Additionally I have posted a suggestion on the form validation in LeightboxPrompt object here:
viewtopic.php?f=22&t=2499&p=10218#p10218
EDIT2::
So looks like the possible "bug" appears only when in RecordBrowser list view. When in record view mode all is fine.
When I changed the datepicker field id to be unique for each record it works. Is that the way it is intended to be?
$close_form->addElement('datepicker', 'done_date'.$r['id'], __('Done date'));
Brgds,
ghristov