Create a form including a subform.
Include the following setting (as per Joomla standard form field documentation):
validate="SubForm"
Subform works.
Get error message:
Joomla\CMS\Form\Field\SubformField::validate() rule SubForm
missing.
Works on Windows server, not Linux
https://docs.joomla.org/Subform_form_field_type
The field property needs to be in lower case - the documentation says it is case sensitive but the given value (SubForm) is wrong. It should be:
validate="subform"
Documentation needs correcting.
Even better should the FormHelper::loadRuleType($type) method convert it to lower case regardless?
Impact of doing that on existing usages, including 3rd extensions?
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-11-14 09:46:32 |
Closed_By | ⇒ | joomdonation | |
Labels |
Added:
No Code Attached Yet
|
Updated documentation with necessary change. Please note that the right value to use is validate="Subform" (still case sensitive as state in documentation). It should not be converted to lowercase as you said.
In your case validate="subform" works because the system apply
ucfirst
to the rule name. But we should still use the right rule name anyway.I'm closing this issue.