Notification email based on conditions

  • askmeabout
    Asked on June 4, 2017 at 3:45 PM

    Is it possible?

    For example - if field gender contains 'man' the notification email sends to my assistant John, if contains 'woman' - to my assistant Bill.

  • jonathan
    Replied on June 4, 2017 at 5:46 PM

    Yes this is very much possible on the form. Please refer to our user guide on how to.

    User guide: How-to-Send-Email-Based-on-User-s-Answer

    Let us know if you need further assistance.

  • AskMeAbout
    Replied on June 4, 2017 at 6:23 PM

    Great! Thanks!

    I have another question. Is it possible to operate in notification emails with fields submissions ? For example I need to have the name of the person who filled my form and only part of he's email without domain: mailbox@ instead of mailbox@gmail.com for example. 

  • Mike
    Replied on June 4, 2017 at 7:36 PM

    You can remove the entire field from the email template, but unfortunately, this is not possible to get a partial content from a field string.

  • Askmeabout
    Replied on June 5, 2017 at 12:02 PM

    Maybe it's possible to copy the partial content of the field into another field ? Or to divide field content?

  • Nik_C
    Replied on June 5, 2017 at 1:51 PM

    We have a Substring widget: https://widgets.jotform.com/widget/substring but it wouldn't be of much help since in that widget you need to specify from which to which part of the string you want to extract. And you just can not predict the length of the email address. So I'm afraid that I must agree with my colleague Mike on this one, it is not possible to extract such kind of strings.

    If you have any further questions please let us know.

    Thank you!

  • AskMeAbout
    Replied on June 5, 2017 at 3:54 PM

    Can I use the Substring widget https://widgets.jotform.com/widget/substring to capture the characters between first character and symbol @     ?

  • Mike
    Replied on June 5, 2017 at 5:00 PM

    Unfortunately, the substring widget support only a predefined number of characters, so it will not work in your case.

  • askmeabout
    Replied on June 7, 2017 at 3:06 PM

    Thanks for your anwers!

  • askmeabout
    Replied on June 8, 2017 at 4:16 AM

    Hi again! I'm about the question how to get a partial content from a field string - get only email@  from email@domain.com

    Maybe there is some way to do this with kind API operations or something?

  • Nik_C
    Replied on June 8, 2017 at 5:10 AM

    Unfortunately, I'm not aware of the easy way to do that, I'm afraid that it will require downloading the Source code of the form and apply  JavaScript to achieve that. You can check our API documentation here http://api.jotform.com/docs/ it might help.

    If you have further questions please let us know.

    Thank you!