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

  • Profile Image
    Klokhuis
    Asked on August 26, 2014 at 03: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

  • Profile Image
    jonathan
    Answered on August 26, 2014 at 07: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

     

     

    the output in the email is like this

     

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

    Thanks. 

     

     

     

     

     

  • Profile Image
    Klokhuis
    Answered on August 26, 2014 at 02:38 PM

    Cheers Jonathon

    Perfect. I really appreciate your little test form.

     

    Paul

     

     

  • Profile Image
    Jeanette
    Answered on August 26, 2014 at 05:27 PM

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

    Cheers1

  • Profile Image
    andrewsalumni
    Answered on July 18, 2016 at 03: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.

  • Profile Image
    Irshad
    Answered on July 18, 2016 at 04: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!