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

    How to write the php webhook code for Full Name?

    Asked by presetschool on September 14, 2013 at 03:59 PM

    Hi.

    The code sample found here: http://pastebin.com/raw.php?i=1SZyZ4uM provides a good implementation of what I need.

    It works fine but I want I seem to have an isssue with the NAME field. How would I pull first name only in the example provided in the pastebin.

    I tried this: $obj['q1_name[first]']

    I used Requestbin to find the actual values for my form but I cannot figure this out. Actually the name field just does not output anything for me yet. Trying to troubleshoot. 

  • Profile Image
    JotForm Support

    Answered by EltonCris on September 14, 2013 at 04:36 PM

    Replace it with

    $obj['q1_name'][first]

    This should work. Make sure to put the index "first" or "last" (for lastname) at the end part.

    Regards!