Selective emails in custom forms


(Joy) #1

I have a custom form where I need to send out various emails depending on what is selected in the form.

 

With the selective emails I can only send out 3 different emails.

 

What's another alternative to send out these emails? I have 10 different emails that can be sent out.

 

 

 

 


(Joy) #2

I have used Submission Actions to send the emails using keyword modifiers, however unless I put in an actual email address it won't work.

 

I.e. %response_xxxx_q1^eq:Yes:email@email.com%   -  Works

      %response_xxxx_q1^eq:Yes:response_xxxx_q5%  - Doesn't work where q5 is the email address.

 

Is my syntax wrong? Or won't Submission Actions work with form response keywords?


(Anthony Ponomarenko) #3

Have you tried just having %response_xxxx_q5%?

Is the email question a required field?


(Joy) #4

I need the modifier on it as the email will get sent based on the answer to a question


(Anthony Ponomarenko) #5

Try the replace_keywords modifier:

 

https://matrix-manuals.squiz.net/keyword-replacements/chapters/keyword-modifiers#Using-Keyword-Replacements-as-Argument-Values

 

eg %response_xxxx_q1^replace_keywords:contains:Yes:{response_xxxx_q5}%


(Joy) #6

That worked, thanks!


(Bart Banda) #7

Have you tried using the Email Options screen to achieve it as well? https://matrix-manuals.squiz.net/custom-form/chapters/form-contents#email_options_screen