[HELP] Email field validation based on selected dropdown value.

Hi Wix masters,
as I am not a coder I would like to ask you for your help!
I have a custom reg form and I added company input field there. Now I would like to validate email domain based on dropdown company value selection.
Example: (all the field are required) I selected ‘IBM’ company from a dropdown menu and I want my Email input to be only cz.ibm.com and nothing else.

I found the code to validate my email and it works fine. Now I need to do, maybe…, some if statement to say IF I select a company the email address should be… Please help me!


Jakub

You are using Wix Forms, you are much better simply making up your own custom sign up and login lightboxes for your website. Then you will be able to have complete control over all your user inputs and not have to rely on Wix to do a lot of the things for you.

See here for more info.
https://www.wix.com/corvid/example/custom-validations
https://support.wix.com/en/article/corvid-about-validating-user-input-with-code
https://www.wix.com/corvid/reference/$w.ValidatableMixin.html
https://www.wix.com/corvid/forum/community-discussion/custom-validation-for-user-input-proplem