Concatenate or append on submit -...

User 2839152 Photo


Registered User
16 posts

I am trying to get the notification email in my application form to go to different email addresses depending upon location selected (http://www.cregeens.com/Application/Application.html). In the form I have a radio element in which the applicant selects which location they are applying for a job. Radio Options are Argenta or Jonesboro with an input name="location" . I have a hidden text element with an input name of "text115" and a value ="@cregeens.com". I have tried using javascript functions to concatenate and/or append 'onsubmit' and 'onclick' to no avail.

I first thought I could easily accomplish thls in the form.cfg.php file. In the file there is a line that says
"subject" : "Application [location][text115]"
The result is an email with a subject line "Application Jonesboro@cregeens.com"
But when I try this with the destination, it will not work.
"to" : "[location][text115]"
this does not come accross as a valid email.
Any thoughts?
thanks


User 188640 Photo


Registered User
895 posts

This sounds like something for Eric. I'm sure he will be in here sometime and answer your question.
A Rose is Just a Weed in a Corn Patch!
User 187934 Photo


Senior Advisor
20,190 posts

I would use the custom redirect option and use the $_SESSION variables to detect the selected location.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.