wordpress-fieldmanager icon indicating copy to clipboard operation
wordpress-fieldmanager copied to clipboard

Adding 'required' to a repeater doesn't work

Open theMikeD opened this issue 10 months ago • 4 comments

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 required things happen: no red border when empty, no popover when trying to save. Is this expected behaviour?

Additional Information

No response

theMikeD avatar Apr 22 '24 17:04 theMikeD

@theMikeD Can you provide the full field definition and let us know what version of Fieldmanager you're using?

dlh01 avatar Apr 24 '24 01:04 dlh01

I'll get a test case together for you ASAP...hopefully doing that will reveal the answer!

theMikeD avatar Apr 29 '24 15:04 theMikeD

@theMikeD Any update?

renatonascalves avatar Jul 24 '24 03:07 renatonascalves

Sorry, life. Give me a bit!!

theMikeD avatar Jul 24 '24 16:07 theMikeD