How to separate First and Last Name in Full Name field in the email

  • Klokhuis
    Asked on August 26, 2014 at 3:30 AM

    Hi Jotform

    Quick question. I have set up a form where the name is filled in surname first, which was requested by the client for the actual form. See screenshot (i just changed the text below the boxes).

    ID: #first_119, #last_119

    Name: {name119}

    So of course because i just changed the text below the boxes, #first_119 refers to the surname and #last_119 to the first name.

    But of course when i add the name {name119} to the auto responder the name appears surname first.

    Is there some clever piece of code I can to the auto responder instead of {name119}

    using the ID but switching it around ie just out of my head something like this:

    {name119#last_119}{name119#first_119}

    Look forward to hearing from you

    Please reply to paul@pauloram.nl

    Jotform Thread 420450 Screenshot
  • jonathan
    Replied on August 26, 2014 at 7:57 AM

    Hi Paul,

    You can do this by adding the arguments "first" and "last" in the Full Name field..

    Example, in your form http://www.jotform.com/42062772281351   the Name of Pupil Full Name field can be set like this

    {nameOf5:last}  and {nameOf5:first}

    so in the email it will give a separate data for surname and last name.

    Please try submitting my test form http://www.jotform.me/form/42373491827461

    I have set the Full Name field like this in the email

    How to separate First and Last Name in Full Name field in the email Image 1 Screenshot 40

     

    How to separate First and Last Name in Full Name field in the email Image 2 Screenshot 51

     

    the output in the email is like this

    How to separate First and Last Name in Full Name field in the email Image 3 Screenshot 62

     

    Hope this help. Inform us if you need more assistance.

    Thanks. 

     

     

     

     

     

  • Klokhuis
    Replied on August 26, 2014 at 2:38 PM

    Cheers Jonathon

    Perfect. I really appreciate your little test form.

     

    Paul

     

     

  • Jeanette JotForm Support
    Replied on August 26, 2014 at 5:27 PM

    Hi Paul, very glad to know Jonathan solved your question.

    Cheers1

  • andrewsalumni
    Replied on July 18, 2016 at 3:27 PM

    Can the same separation be done in reports. 

    We are looking to show list of those registered for an event via report but we only want to show first names.

  • Irshad
    Replied on July 18, 2016 at 4:06 PM

    @andrewsalumni,

    I've moved your question to a separate thread and shall be addressed there shortly.

    https://www.jotform.com/answers/885295

    Thank you!