getting the last_form cookie value and inject jquery function to submit button

  • mmora_dxt
    Asked on December 1, 2015 at 8:31 PM

    Hi, we have acquired JotForm engine and we know that it doesn't have the API to work with it neither the JotForm Anywhere library and we are embeding the Builder wthin an iframe over our .NET Application we have achieved to embed the builder as it doesn't have any complications with this. 

    What we face now is, when we try to get the value of the cookie named "last_form" which is generated by JotForm we are getting undefined value instead of getting the id of the generated form.

    We have researched and we find out that we need to use CORS but we don't know where exactly to add the correspondent headers. So far we tried to add that policy into the apache server which is hosting the jotform engine but we are still getting indefined value.

     

    This are our references:

    http://hayageek.com/cross-domain-ajax-request-jquery/

    https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

    https://en.wikipedia.org/wiki/Same-origin_policy

     

    Regards!

     

  • Charlie
    Replied on December 2, 2015 at 3:17 AM

    I'm not sure if I understand your setup.

    We have the online form builder www.jotform.com, we also have a licensed product JotForm Engine which can be found here: http://www.interlogy.com/products/jotform/ 

    Please note that both products are different and we can only provide support here for our form builder. For the JotForm Engine, you might need to contact Interlogy here: http://www.interlogy.com/contact.html 

     

    Regarding your concern, if I understand you correctly, you are trying to somehow pass values from your online form (built and hosted in www.jotform.com), to be passed on JotForm Engine which is in your own server?

    I am not sure how this is done and it is quite a complex setup, from what I know and based from our Privacy policy statement, we only use cookies for log in sessions in www.jotform.com, but not in the forms.

    Perhaps, using the API for www.jotform.com would still work even if JotForm Engine does not any any API library. You group the forms in a main folder, then fetch the list of forms on that folder and sort them by the latest form edited? 

    To get the list of folders, you can follow this guide: http://api.jotform.com/docs/#user-folders 

    To get the forms on the list of folder, you can check this one: http://api.jotform.com/docs/#folder-id 

     

    I hope that helps.

  • mmora_dxt
    Replied on December 2, 2015 at 11:25 AM

    Thank you! I will contact to Interlogy support...

  • Charlie
    Replied on December 2, 2015 at 12:31 PM

    You are welcome. Should you need any assistance again, feel free to contact us.