What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Workaround to Split Full Name in First and Last Name fields

    Asked by nickbh on November 13, 2015 at 06:25 AM

    HI,

    As a workaround I need to split the Full Name into First Name and Last Name in the form.  I've a few workarounds, but my preference would be to have the user enter the name using the Full Name field and then I just split it in the form (hidden) and the fields are passed when submitted.

     

    I have tried to do this using conditionally logic but cant get it to work. 

    Can you confirm whether or not this method is possible.

     

    My other workaround of course is to use to separate fields and present them to the user.  However this is not preferred as I like the entry format of the FulName.

    I also realise that they are split into {LeadName:first} and {LeadName:last} when posted in the submission.  The only reason I need this a a workaround is that I use ZAPIER.  Unfortunately ZAPIER do not offer the split of name and can only utilise FULLNAME.

    Thanks

    PS I can also split it later in the process using PHP but again my preferred option is within the form into separate fields, whilst still presenting the FULLNAME field to the user.

     

    Screenshot
    name workaround and full
  • Profile Image
    JotForm Support

    Answered by mert on November 13, 2015 at 09:08 AM

    Hi there,

    With the "Update a Form Field Value" condition, you can easily combine the first and last name into a same field. 

     

    Also, you can access the demo from the link below:

    https://form.jotform.com/53163756224960

     

    However, splitting the name fields on the "Update a Form Field Value" condition seems like not acceptable. Normally, if our "Name" field has a ID {enterYour}, the first and last name have IDs like following:

    {enterYour:first}

    {enterYour:last}

     

    I will let the developers know about this issue. If any news show up, you will be informed from this thread.

    Thanks.