Expand my Community achievements bar.

Combine 2 text fields into email address.

Avatar

Level 1

We are trying to Combine Two text fields (First name and Last Name text fields) into an email address.

Something like this.

TextField1 (Firstname) John

TextField2 (Lastname) Doe

TextField3 = John.Doe@domain.com

Is there a way to do this?

Thanks

4 Replies

Avatar

Level 7


The simplest way I can think of is to add code to the calculate event of TextField3.


this.rawValue = TextField1.rawValue + "." + TextField2.rawValue + "@domain.com";


Avatar

Level 7

where do the names come from? e.g., the user enters that information on a form, or the information comes from an xml file.

I just created a quick example to verify. At first, it does say null.null@domain.com, but as I enter the information in the fields, it gets the correct information.

Avatar

Level 1

Must have been something buggy with Designer. Exited the program and relaunch resolved the null not disappearing.

Thanks