adding email suffix to a field on a form

driver7408

Registered User.
Local time
Today, 01:19
Joined
Feb 7, 2010
Messages
72
I have a form where users enter their personal information. Everyone who uses this shares email under the same domain.

Is there a way to make the field for entering their email address automatically just add the "@here.address.com" to the end of the field, so they dont have to type that in themselves?
 
In the after update event of your text box you could add that string to the value of that field.

something like...

Code:
YourTextBoxNameHere = YourTextBoxNameHere & "@here.address.com"

Or in another field for just the email address you could merge fields together...

Code:
YourTextBoxNameHere = YourTextBoxFirstNameHere & YourTextBoxLastNameHere & "@here.address.com"

Allowing the users to freely type their name is not wise since they can mispell it, add spaces or special characters for which you can trap for but it is a lot of work to try and prevent all the things that can go wrong.
 

Users who are viewing this thread

Back
Top Bottom