Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
theMikeD opened this issue Apr 22, 2024 · 4 comments
Open

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

theMikeD opened this issue Apr 22, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@theMikeD
Copy link

theMikeD commented Apr 22, 2024

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 theMikeD added the bug Something isn't working label Apr 22, 2024
@dlh01
Copy link
Member

dlh01 commented Apr 24, 2024

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

@theMikeD
Copy link
Author

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

@renatonascalves
Copy link

@theMikeD Any update?

@theMikeD
Copy link
Author

Sorry, life. Give me a bit!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants