I was hoping to get some direction on how to make a textfield in my webfrom mandatory but only if a particular select option was not checked.
So the textfield is mandatory by default but if the select option is checked, the text filed is no longer mandatory. I have tried to do this via jquery but have then read that validation is server side so I'm not sure what best practice is for this.
Does this type of behavior need custom validation via hook_form_alter() - or is there another way to achieve this? I am running Drupal 7.
Thank you in advanced.