How to send form POST submit to Jotform?

  • zarafahcrafts
    Asked on January 8, 2022 at 8: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  Screenshot 10

    My code to submit the form as per the DOCs:

    1641649558 61d9959695304  Screenshot 21

    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  Screenshot 32

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

    1641650647 61d999d7c1700  Screenshot 43

    Can someone please help out? Thanks.

  • Sheena JotForm Support
    Replied on January 8, 2022 at 9: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

  • zarafahcrafts
    Replied on January 9, 2022 at 9: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  Screenshot 10

    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  Screenshot 21

    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.