Security

Reply

Sponsor name not equal to Your name

Hi all,

 

We have a customer who has a guest registration page setup that asks for the sponsor's name and the guest's name (who is registering). Somehow many guests are entering their name as the sponsor AND in the "Your Name" field. Even with descriptions, they still do it.

 

Is there a way to validate the fields and say IF Sponsor name = Your Name THEN error. Similar to if someone misses a field that is required and it puts that red box around it.

 

Thanks.


Thank you.

Michael Haring | AIS Consultant
Architecture and Implementation Solutions
Optiv Security Inc. | www.optiv.com

Re: Sponsor name not equal to Your name

[2015-07-22]-Image002.jpg


Thank you.

Michael Haring | AIS Consultant
Architecture and Implementation Solutions
Optiv Security Inc. | www.optiv.com
MVP

Re: Sponsor name not equal to Your name

I can't do exactly what you require but I can add an interactive message into the form when the fields match.

I created a custom field called "mismatch". See attached screenshots for changes from the default values. 

I added this field to the form and then amended the initial values of both Sponsor Name and Visitor Name so they had differing values.

Now when the form is completed, if the Sponsor Name and Visitor Name fields match, an additional field is displayed with a warning. See screenshots for the same values and differing values.

 

This doesn't stop the form being submitted but does give the end user a warning message.

 

David
ACDX #98 | ACMP | ACCP
Guru Elite

Re: Sponsor name not equal to Your name

I'm thinking you could probably follow this same logic on a required checkbox field.

 

Use the logic to say if the two field values are equal, uncheck the box which will cause the form to not be submitted. You can hide the field but change the error text to reflect the message that you want.


Tim Cappalli | Aruba Security TME
@timcappalli | timcappalli.me | ACMX #367 / ACCX #480

Re: Sponsor name not equal to Your name

I think the combination of the two might be the trick. That is awesome, we will give it a try.

 

Thanks for all the help!


Thank you.

Michael Haring | AIS Consultant
Architecture and Implementation Solutions
Optiv Security Inc. | www.optiv.com
Contributor II

Re: Sponsor name not equal to Your name

Did you ever get this to work? Interested in seeing the results.

 

Thanks!

Re: Sponsor name not equal to Your name

Never got it to fully work.

Problem was because technically the Guest name and sponsor name are the same in the beginning, the error would exist prior to anything being typed. This does function, but does not stop them from submitting anyway.

________________________________
Michael Haring | Network Engineer
(610) 246-6037 | Comm Solutions

Sent from my iPhone

Thank you.

Michael Haring | AIS Consultant
Architecture and Implementation Solutions
Optiv Security Inc. | www.optiv.com
Contributor II

Re: Sponsor name not equal to Your name

My recommendation is to enable Sponsor Email feild and to create a validtaor that acceppt only the Corporate email fro Example if the corperate domain is xyz.com so only emails with domain of xyz.com will be able to register I tried that and it worked and validator arugument as below :

 

array (
'allow' =>
array (
'xyz.com'
),
'deny' =>
array (
),
)

Islam Zidan │ Professional Services Engineer | ACCP,ACMP,CWDP,CWNA,CCNP,MCITP,Competia A+
If you Found My Post Helping you kindly Give KUDOS and if it solved your question Kindly hit Accept as a solution box.
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: