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

    Does Joomla 1.6 not support JotForm forms?

    Asked by fish4red on May 02, 2011 at 10:25 AM

    I have been using joomla 1.5 for my clients for a while and Jot form always intergrated perfectly with that.  However Joomla 1.6 is not liking the Jotform embed options.  I tried the iframe and also standard HTML and it's not working. 

     

    Any ideas?

    Page URL:
    http://kamastudio.com/index.php/contact

  • Profile Image

    Answered by DanielGriffin on May 02, 2011 at 11:14 AM

    Hi fish4red

    Its possible that joomla is preventing you from adding scripts to your content.  Have you seen the joomla page in the user guide:

    http://www.jotform.com/help/6-Adding-Form-to-Joomla

    If you haven't already tried, you could also add your form using an iframe by doing the following:

    1. Open your form in JotForm
    2. Click on 'Setup & Embed
    3. Choose 'Embed Form'
    4. From the embed options choose 'iFrame'
    5. Copy the iframe code and insert into your joomla page.

    Hope this helps, but if you still have problems please get back to us.

    Thanks,

    Daniel

  • Profile Image

    Answered by fish4red on May 02, 2011 at 01:56 PM

    Hi.
    Thanks for responding.
    I have tried the Iframe as well. Joomla 1.6 will not allow the insert =
    of any of the code other then the full HTML code but it then displays =
    errors because of the script tag. I have tried different content =
    editors and even disabled them all, still no luck.
    When I add the code and hit \"save\" I notice joomla is taking the code =
    away completely and then it things the content item is blank....
  • Profile Image

    Answered by DanielGriffin on May 02, 2011 at 02:20 PM

    Ok it sounds like TinyMCE (the content editor tool) is stripping out anything sensitive.

    I found the following solution for a similar problem with Joomla 1.5 online.  It is from this thread on the Joomla forum

    http://forum.joomla.org/viewtopic.php?p=1525670

    There are some other solutions there as well but I think this one should be common to 1.5 and 1.6... but I don't have access to a 1.6 Joomla instance so can't test  it to be sure. 

    1. Create a new user and set the User Editor to "Editor - No Editor"
    2. Log in as this new user (ie no longer using tinymce to post nor edit articles),  create a new article and paste the iframe into it.

    Let me know if this helps,

    Thanks,

    Daniel

  • Profile Image

    Answered by DanielGriffin on May 02, 2011 at 02:24 PM

    Also,

    This post by Jen4Web in the same thread looks promising

    "In Joomla, iframes are called wrappers.

    There's one in the menu manager, which is designed for an iframe to take up a whole page.

    In the module manager, there's a wrapper module. Set up the module with your iframe settings, assign it a module position (I recommend using a position not in use on the site elsewhere), and assign the module to your content item. I usually use a position like "inset" but you can call it whatever you want.

    Now in your content item, add this piece of code:

    {loadposition inset}

    where "inset" is the name of the module position.

    Save the content and take a peek.

    The piece of code above is based on a plugin that comes with Joomla called Content - Load Module. You can find it in the plugin manager. There is a setting there for changing the style. By default your module will be wrapped in a table. You may want to get in there and change it to wrapped by a div or no wrapper.
    "

    Cheers,

    Daniel

  • Profile Image

    Answered by fourstar4 on May 06, 2011 at 12:25 PM

    I found by changing the notification to a text instead of HTML email I was able to get it through a Joomla 1.6 site

  • Profile Image

    Answered by DanielGriffin on May 06, 2011 at 04:45 PM

    Thanks for the information fourstar4, but fish4red's problem seems to be actually displaying the form in the first place.

    Cheers,

    Daniel

  • Profile Image

    Answered by senet on June 10, 2011 at 08:20 AM

    Hello, thank you for this information.
    However, I can not change the shape of the form in my page.
    I followed your recommendations (loadmodule), but nothing to do ...
    Do you have any other solutions so that the questionnaire does not appear in a frame?
    In advance thank you
    Agnes


    To see my form
    (site under construction)

  • Profile Image
    JotForm Support

    Answered by liyam on June 11, 2011 at 04:23 AM

    Hello senet,

    So far we're still figuring out how to make this work.  I have checked Joomla 1.6 and found out that aside from the TinyMCE issue,  it has something to do with the content management system itself that it automatically deletes scripts from the content once you save it.

    I saw this issue after I did not use any editor and checked what happens when I save an article, and what happened was that it deleted the script tags and left what's in between.

    We will keep you posted once we have an answer.

  • Profile Image
    JotForm Support

    Answered by liyam on June 11, 2011 at 05:02 AM

    Hello again senet,

    So far I found out that Joomla 1.6.3 filters out script tags.

    This is not recommended but this will stop joomla from deleting (filtering out) script tags whenever you insert a javascript code, including your jotform script source codes for joomla.

    How to allow javascripts in article submissions in joomla 1.6

    1. Open the file libraries\joomla\filter\filterinput.php

    2. Go to line 59 of the file, or find simply find this part of the code:

    var $tagBlacklist = array ('applet', 'body', 'bgsound', 'base', 'basefont', 'embed', 'frame', 'frameset', 'head', 'html', 'id', 'iframe', 'ilayer', 'layer', 'link', 'meta', 'name', 'object', 'script', 'style', 'title', 'xml');

    To explain, this part of the code tells that these are the tags that are going to be removed if you ever try to make a submission.

    3. Delete: 'script',. So it will become like this:

    var $tagBlacklist = array ('applet', 'body', 'bgsound', 'base', 'basefont', 'embed', 'frame', 'frameset', 'head', 'html', 'id', 'iframe', 'ilayer', 'layer', 'link', 'meta', 'name', 'object', 'style', 'title', 'xml');

    4. Save the file.

    To insert forms via submission, it's recommended to not use any editors. Tiny MCE filters out javascript inserts even when I have set it to not clean the code after submission and even if I have edited the script iself.

    To change your editor:

     

    1. Go to Global Configuration
    2. Under site settings: Default editor "Editor - None". 

    If you need further clarification regarding this matter, please let us know.  We'd be happy to assist.

    Thanks,

    Liyam

  • Profile Image

    Answered by senet on June 15, 2011 at 05:07 AM

    Hello,

    Thanks for your answer.

    Your solution is perfect !!

     

    Just a precision : On my "Global Configuration" I don't have "Editor-None" but I have : "CodeMirror", "Non WYSIWYG" and "Tiny MCE" and I choose "Non WYSIWYG"

    Thanks a lot

    Agnès

  • Profile Image
    JotForm Support

    Answered by liyam on June 15, 2011 at 05:21 AM

    Hello Agnès,

    Good to know the solution works for you. 

    If we ever get to find other means to make things better for joomla users, we'll let everyone know.

    Thanks and warm regards,

    Liyam

  • Profile Image

    Answered by Brian Teeman on June 24, 2011 at 07:46 PM

    Please do NOT follow this advice and edit the core files of Joomla. Not only will kittens die when you edit the core files but you will lose the changes when you update Joomla to the next version or for security updates.

    you need to whitelist <script> in the interface provided not hack the core files

  • Profile Image

    Answered by Brian Teeman on June 24, 2011 at 07:49 PM

    Oops I hit submit too early

    http://docs.joomla.org/Help16:Content_Article_Manager#Filtering_Options_.28HTML.29

  • Profile Image
    JotForm Support

    Answered by liyam on June 25, 2011 at 01:26 AM

    Thank you for pointing this out Brian. I was looking for this post since 3 days ago to update this one. (I did say it's not recommended and it was only due to the matter that I could not find where to fix the filtering issues via administration that prompted me to re-code the core.)

    So to change the settings, here's the new update:

    For Joomla 1.6 users, to be able to insert your forms in articles, you need to do the following:

    1. Login to the administration panel
    2. Click Article Manager

    https://cms.jotform.com/uploads/image_upload/image_upload/global/999_joomla1.6_01.png


    3.Click Options on the upper-right part of the page

    https://cms.jotform.com/uploads/image_upload/image_upload/global/1000_joomla1.6_02.PNG

    3. Go to Text Filters tab, set the filter type (change Black List to White List and add script under filter tags, or you can use No Filtering). And then Save your settings

    https://cms.jotform.com/uploads/image_upload/image_upload/global/1002_joomla1.6_03.PNG

    Let us know if you are still experiencing issues regarding this.

    Thanks,

    Liyam

  • Profile Image

    Answered by basketbaal on October 14, 2011 at 02:50 AM

    But Am Sending source html code and saved. after nothing script code. am understand problem.

  • Profile Image
    JotForm Support

    Answered by liyam on October 14, 2011 at 03:13 AM

    Hello basketbaal,

    Can you please provide us more details about your problem?  If you can give us the URL to your form page that has the error, it would be great.

    Also, can you tell us that you have done the instructions that I have made?

    Thanks.

  • Profile Image

    Answered by koydenaliyorumm on October 14, 2011 at 05:13 AM

     

    Liyam look please.

  • Profile Image
    JotForm Support

    Answered by idarktech on October 14, 2011 at 06:43 AM

    Hi Koydenaliyuromm,

    If the above solution doesn't work, you may try to use Jumi Joomla Extensions which may help you embedding JotForm's Javascript Code. Base on that page, it is available in all Joomla versions and Non-Commercial so you can download it for free. If you are having trouble with the usage click here

    I haven't tested this but most of the users says it is working, so I am pretty sure it would work on your side.

    If this doesn't help, let us know so we can assist you further. Thank you so much.

     

    ~idarktech

  • Profile Image

    Answered by koydenaliyorumm on October 16, 2011 at 07:39 AM
    *I solved the problem thank you*... I love jotform :) see you.
    ___________________________________________________________