can I pull the first name from the fullname field for a confirmation letter

  • adea
    Asked on November 11, 2015 at 1:44 PM

    I am using the fullname field in my form.  However, I would like to pull only the first name of that field into my confirmation letter.  Would I use {#first_4} to accomplish this or do I have to break up the fields to be able to include the first name?

     

    Carolyn

  • David JotForm Support
    Replied on November 11, 2015 at 2:52 PM

    Hi,

    My colleague Abajan(Wayne) presented the following guide for different parts of the Full Name:

    The following examples assume that the generated tag is {fullName2} but the actual tag generated depends on the order in which the field was inserted into the form and if the default label was changed by the form's creator. Also, these examples use the Full Name field with all of the options (Prefix, Suffix and Middle Name) enabled.

    So let's say a user enters his name in such a field as Dr John Michael Doe Ph.D:

    {fullName2} renders Dr. John Michael Doe Ph.d (the period after the prefix is automatically inserted)

    {fullName2:first} renders John

    {fullName2:middle} renders Michael

    {fullName2:last} renders Doe

    {fullName2:prefix}. {fullName2:last} renders Dr. Doe (in this case, the period and space must be manually added)

    {fullName2:prefix}. {fullName2:last} {fullName2:suffix} renders Dr. Doe Ph.D

    In the case of your form, for the first name, it would be:

    {yourName:first} for the first name.