Notification email based on conditions

  • Profile Image
    askmeabout
    Asked on June 04, 2017 at 03: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.

  • Profile Image
    jonathan
    Answered on June 04, 2017 at 05: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.

  • Profile Image
    AskMeAbout 
    Answered on June 04, 2017 at 06: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. 

  • Profile Image
    Mike
    Answered on June 04, 2017 at 07: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.

  • Profile Image
    Askmeabout 
    Answered on June 05, 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?

  • Profile Image
    Nik_C
    Answered on June 05, 2017 at 01: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!

  • Profile Image
    AskMeAbout
    Answered on June 05, 2017 at 03:54 PM

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

  • Profile Image
    Mike
    Answered on June 05, 2017 at 05:00 PM

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

  • Profile Image
    askmeabout
    Answered on June 07, 2017 at 03:06 PM

    Thanks for your anwers!

  • Profile Image
    askmeabout
    Answered on June 08, 2017 at 04: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?

  • Profile Image
    Nik_C
    Answered on June 08, 2017 at 05: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!