-
zarafahcraftsAsked 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:
My code to submit the form as per the DOCs:
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:
Again this is what i get in Jotform inbox whenever i submit the form:
Can someone please help out? Thanks.
Page URL: https://form.jotform.com/220063693650049 -
Sheena JotForm SupportReplied 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
-
zarafahcraftsReplied 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:
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:
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.