Problem with a structure, how to set a conditional variable inside
Not sure if I titled it correctly, but I have created a structre:
<cfset email.fields[1] = StructNew()>
<cfset email.fields[1].required = true>
<cfset email.fields[1].label = 'County Email Address'>
<cfset email.fields[1].displayIcon = false>
<cfset email.fields[1].regEx = "^.+@jason.com$">
<cfset email.fields[1].externalSource = newExternalSource()>
The line taht is bolded and underlined is the line I am having issues with. Basically I have set the variable to a particular email address, and the way the struct is set up, the users are only allowed to enter that email address. My issue is, that this particular client has 2 email address that their users can enter. I am not sure how to accomplish this within the structure, if it is possible at all. For example, here is what I would like to do, although the syntax is incorrect:
<cfset email.fields[1].regEx = "^.+@jason.com$" OR "^.+@tommy.com$">
