I have 2 fields in my content type 'test':
- 'Photos Gallery' -field type is image
- 'Enable' checkbox to Enable gallery (field type boolean)
Required output: When 'Enable'-field is checked, the node should not allow us to save with empty photos in the 'Photos Gallery' field and we should be able to save if 'Enable' is unchecked.
I tried the Conditional Fields module and given condition like 'Gallery Photos is required when Enable is checked.', where 'Gallery photos' is dependent and 'Enable' is dependee field.
Current output: In the node edit page , when 'Enable' is checked, asterisk (*) can be seen near 'Gallery Photos' , but without adding photos if i save, it is allowing me to save, without any error.
What additional settings I need to do, apart from dependency settings?
Note: I'm also interested in possible alternative solutions to get this to work (instead of using Conditional Fields).