Include field values only when they are entered.

  • Tomat
    Asked on September 10, 2024 at 12:05 AM

    hi,

    I am a dog minder and I have a form for clients to book their dogs with us.

    The form allows up to three dogs to be included:

    https://form.jotform.com/Tomat/regulars-sleepover-booking-form

    Include field values only when they are entered Screenshot 30

    After approval, I would like to send a confirmation email for the booking and include the second and third dog name ONLY IF ENTERED.

    See email:

    Include field values only when they are entered Screenshot 41

    this would mean that if there is only one dog booked it will only show one name in the email subject and in the opening line of the email.

    hope this make sense! thanks, Resi

  • Mary Eden JotForm Support
    Replied on September 10, 2024 at 1:49 AM

    Hello Resi,

    Thanks for reaching out to Jotform Support. I understand the request, but I’ll need a bit of time to look into this and work out a solution. I’ll get back to you as soon as I can.

    Thanks for your patience and understanding, we appreciate it.


  • Mary Eden JotForm Support
    Replied on September 10, 2024 at 12:50 PM

    Hello Resi,

    I created a workaround that will meet your request. You'll just need to add more elements to the Approval Workflow. Let me show you how it's set up:

    1. In your Approval Workflow Builder, click on the Add Element Menu.
    2. Scroll down, and under the Logic Elements, drag and drop the Conditional Branch in the Approval Workflow.
    3. Remove the current Email Element linked with the Approve outcome, and then connect the Conditional Branch element to it.

      Include field values only when they are entered Screenshot 80
    4. Duplicate the email element twice. The idea is that we will send different emails based on how many Dog fields they have filled out. 
      Include field values only when they are entered Screenshot 91
    5. Customized Email Content based on how many Dog Name Fields were filled out. 

      Include field values only when they are entered Screenshot 102
    6. Lastly, create the Conditional Branch based on how many Dog Name Fields were filled out. 

      a. For Dog 1, set up this conditional Branch below:

      Include field values only when they are entered Screenshot 113
      b. For Dog 2, set up this conditional Branch below:

      Include field values only when they are entered Screenshot 124
      c. For Dog 3, set up this conditional Branch below:

      Include field values only when they are entered Screenshot 135

    7. Connect the Conditional Branches to the Email Elements.

      Include field values only when they are entered Screenshot 146

    Give it a try and reach out again if you have any other questions.

Your Answer