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

    Adding JotForm to Prestashop?

    Asked by madscientist on February 26, 2016 at 04:14 AM

    Thanks for trying to help me Kiran. I tried the post and my code for prestashop 1.6.1.1 looks a little different (below). When i try to "Comment Out" the field I receive a server error unfortunately.. 

    if (preg_match('/<[\s]*script/ims', $html) || preg_match('/('.$events.')[\s]*=/ims', $html) || preg_match('/.*script\:/ims', $html)) {

                return false;

            }

          

            if (!$allow_iframe && preg_match('/<[\s]*(i?frame|form|input|embed|object)/ims', $html)) {

                return false;

            }

     

            return true;

        }

     

    Do you know what im doing wrong? Thanks so much

  • Profile Image
    JotForm Support

    Answered by Charlie on February 26, 2016 at 04:23 AM

    Apologies, I am not quite familiar with Prestashop, but may we know if you have already followed the instructions mentioned in our "Publish" wizard?

     

    I see that the latest version of Pretashop is 1.6.1.4. It would be best to update your version to make sure that bugs, glitches and compatibility issues will be fixed from the older version.

  • Profile Image
    JotForm Support

    Answered by Kiran on February 26, 2016 at 09:57 AM

    It seems that you have commented out two more lines at the end. Please make sure that you are commenting the text as colored in the yellow background below:

    if (preg_match('/<[\s]*script/ims', $html) || preg_match('/('.$events.')[\s]*=/ims', $html) || preg_match('/.*script\:/ims', $html)) {

                return false;

            }

            if (!$allow_iframe && preg_match('/<[\s]*(i?frame|form|input|embed|object)/ims', $html)) {

                return false;

            }

            return true;

        }

    The text in the blue background shouldn't be commented.

    Though the form doesn't display in the Administrator section, it should be displaying fine when we view the webpage normally. I've tested with Prestashop v1.6.1.4 on a local server.

    Administrator View

     

     

     

    User view:

    Hope this information helps! Please let us know if we can be of any further help. We will be happy to assist.