• Resolved macrorxplus

    (@macrorxplus)


    I upgraded to the Professional level a couple of months ago, and am running into an issue I was hoping there was a simple solution. On one of my forms, I request their email address, however there are certain domains I want to exclude. Is there a way to use some sort of custom validation to do this? i.e. not allow *@hotmail.com or *@live.com etc.

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @macrorxplus,

    My apologies for the delay in respond your question, the notification was classified as spam by my email application.

    An alternative would be create a new validation rule with a regular expression for checking the email address.

    Please, insert a “HTML Content” field in the form with the following piece of code as its content:

    
    <SCRIPT>
    fbuilderjQuery(document).one('showHideDepEvent', function(){
    	fbuilderjQuery
    	.validator
    	.addMethod(
    		"special-mail",
    		function(v,e)
    		{
    			return this.optional(e) || !/^.+@((yahoo)|(live))\.com$/.test(v);
    		}
    	);
    	fbuilderjQuery.validator.messages['special-mail'] = 'The  email address is not supported';
    	fbuilderjQuery('[type*="email"]').addClass('special-mail');
    });
    </SCRIPT>
    

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Filter for email address field?’ is closed to new replies.