I am using mymodule_webform_submission_presave() to alter some of the data before it gets saved. I want to check if a certain select field has a certain option selected, dont save the form to the db and give the user an error like "you may not pick this" and dont save the form.
I would remove the option itself from the form but this wont be possible.
I've also tried to do it via the webform gui but there is no rule which says "this select may not have this option selected", is there?
Thanks!