Hi,
following situation: I have a form having two objectpicker fields. None of them is mandatory.
But if one is selected and has a value, the other one needs to be disabled and the value needs to be removed.
I got a part of the disabled part done with $(fieldname + "_chosen").addClass( "chosen-disabled")
, but this doesn’t work as expected. The picker looks like disables, but can still be clicked and opens the dropdown behind the other field.
To sum it up:
- If picker A has a value, picker B should be disabled, the value should be empty.
- If picker B has a value, picker A should be disabled, the value should be empty.
- If none of the pickers have a value, both are enabled.
I already had a look into FORGEBOX: PresideCMS Extension: Validation Extras, but I can’t see how to get this solved.
Is this possible with Preside? Any hint is welcome.
Thanks,
Michi