How to send form POST submit to Jotform?

  • Profile Image
    zarafahcrafts
    Asked on January 08, 2022 at 08:51 AM

    Hello,

    i'm having a horrible time to achieve something very simple with Jotform API. I'm trying to submit a form i created in my Laravel project to Jotform API. I followed the DOCs and it got me no where.


    Part of my form:

    1641649301_61d99495daf85_

    My code to submit the form as per the DOCs:

    1641649558_61d9959695304_

    Whenever i post the form i receive empty form submit in Jotform even if i hardcoded the value. I tried to change the key for questions to match the code when i inspect the form in Jotform, for example for question first name i entered the key q4_name[first] but it gives me unidentified key so i think the problem isn't because of the key.

    This is what i get after submitting the form in my project:

    1641649851_61d996bbaa2f5_

    Again this is what i get in Jotform inbox whenever i submit the form:

    1641650647_61d999d7c1700_

    Can someone please help out? Thanks.

  • Profile Image
    Sheena_M
    Answered on January 08, 2022 at 09:12 AM

    Hi there,

    Thanks for contacting Support and providing all the information.

    I have escalated your concern to our back-end support team, they'll get in touch with you as soon as they got an information with your issue.

    Your patience is truly appreciated.

    Warmest,

    Sheena

  • Profile Image
    zarafahcrafts
    Answered on January 09, 2022 at 09:20 AM

    Nevermind i solved it myself. The issue was in questions IDs. It really isn't easy at all and i think API team should reconsider simplifying the DOCs.

    Allow me to explain just in case someone faced the same issue:

    To POST a submission to a form you need first to get the exact QIDs by creating a normal testing submission through Jotform website and then create a route to get and debug the submission you just made for testing.

    My example:

    1641736928_61daeae0c6761_

    When debugging the response, you'll find that questions order and IDs are quite unique and confusing but you'll manage to know the exact QIDs for your exact questions. For example, mine was as showing below:

    1641737875_61daee93d6a84_

    Thank you Jotform for trying to help and for your API actually working perfectly yet the DOCs needs to be more clear or the IDs needs to be more simple or easy to get :)

    Ps: My API key along with the form will be deleted so you don't have to worry about me sharing them here.