How to show a text in the "Thank You" message depending on a field

  • guweb
    Asked on October 7, 2015 at 2:20 AM

    Hi!

    We want to verify a submission by a sending an email to a particular address, which will be based on a option chosen by the user from a dropdown menu. Say if the user chooses Department of Physics, the verification email after submission will be sent to physics@example.com. If the user chooses say Department of Chemistry, the email will be sent to chemistry@example.com.

    We have accomplished this by putting conditions for sending emails. The problem comes when we want to display a thank you message saying that "A verification email has been sent to ...@example.com ..." where the email should be the email that was decided by the logical condition.

    The earlier option of "Calculate Field" in textbox seemed to be perfect. that way I could populate the textboox with the correct email (with a conditional logic) depending on the option the user chooses. But now the "Calculation Form" widget is of no help.

    Is there a way to achieve this. This has become a necessity as JotForm does not allow authentication.

    Kindly help

    --- Madhurjya

  • Sammy
    Replied on October 7, 2015 at 6:30 AM

    Hello Madhurjya,

    You can use form conditions to change the thank you message based on the selection, you can then tailor each message based on the selected department.

    How to show a text in the Thank You message depending on a field Image 1 Screenshot 70

    A second approach will be to used field conditions for updating a field value to populate the email based on the department. You can then use this field as a parameter in  the default thank you page message same way you used the {passcode} tag.

    How to show a text in the Thank You message depending on a field Image 2 Screenshot 81

    How to show a text in the Thank You message depending on a field Image 3 Screenshot 92

    How to show a text in the Thank You message depending on a field Image 4 Screenshot 103

    How to show a text in the Thank You message depending on a field Image 5 Screenshot 114

    How to show a text in the Thank You message depending on a field Image 6 Screenshot 125

    Please let us know if this addresses you scenario.

     

  • guweb
    Replied on October 8, 2015 at 1:35 AM

    Thanks a ton Sammy! I do really appreciate your very valuable answer. I did not realise that the new Calculate Form widget also allows user defined text to be used.

    This kind of support what makes JotForm as one of the great tools in online form making. Thanks!

    --- Madhurjya