Skip to content

Adding 'required' to a repeater doesn't work #868

@theMikeD

Description

@theMikeD

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions