wordpress-fieldmanager
wordpress-fieldmanager copied to clipboard
Adding 'required' to a repeater doesn't work
Description of the bug
If I create a repeater and one of the fields in the group added by the repeater is marked as required
, the expected functionality associated with this option doesn't seem to work. Is this expected behaviour?
Steps To Reproduce
If I create a repeater using
'limit' => 10, // max number allowed
'collapsible' => true,
'collapsed' => false,
'minimum_count' => 0, // how many to start with
'extra_elements' => 0, // how many blank ones to show in addition to the filled in ones
and one of the fields in the group added by the repeater has
'attributes' => array(
'required' => true,
),
then none of the require
d things happen: no red border when empty, no popover when trying to save. Is this expected behaviour?
Additional Information
No response
@theMikeD Can you provide the full field definition and let us know what version of Fieldmanager you're using?
I'll get a test case together for you ASAP...hopefully doing that will reveal the answer!
@theMikeD Any update?
Sorry, life. Give me a bit!!