I have a form with a dropdown that when specific values are chosen from the dropdown they unhide certain fields. Also, behind the submit button I have the following code. The problem is that if the validation fails (for example if the dropdown value is "Claims" and none of the checkboxes are == 1, it puts the message box out there "Please select at least one LOB", but it immediately then opens the email box with the pdf attached. I do not want it to allow anyone to go any further if they have not selected at least one checkbox.
Can anyone please help me clean up this non-working code below? Thanks so much!