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

    terms & conditions pop-up window inside a form

    Asked by cheekyface on February 26, 2014 at 04:41 AM

    Hi.
    Just trying to work ourt how to set up a terms & conditions agreement section that allows the user to click to open a pop-up window to view the terms & conditions.  I actually had my form working this way but obviously some changes have been made recently and now I can no longer use the code that I previously could.  It simply dissapears when I save the edit.

    I've looked through the widgets too and there doesn't seem to be anyhting that can help with this.
    Is it possible?

     

    Cheers,
    Danny. 

    section and
  • Profile Image

    Answered by datasphere on February 26, 2014 at 08:41 AM

    Hi

    I can see that you have done this two years ago

    http://www.jotform.com/answers/57016-Adding-a-pop-up-box-to-show-terms-and-conditions

    If it serves you I have used this kind of retracting "Terms&Conditions" box by customizing CSS.

     try it by clicking the link:

    If you want me to check with you why it wont poput please give me exact URL of your public form
    Bye
    Damir
  • Profile Image
    JotForm Support

    Answered by ashwin_d on February 26, 2014 at 09:55 AM

    Hello Danny,

    You are right. For security reason, the injection of script code in the form builder is now restricted. The script code will now be stripped upon saving. I believe we can still open a new window by adding a hyper link in the form and setting the .

    Upon taking a closer look at your form, I found that you have already added the hyperlink in your terms and conditions. 

    I believe this is the only way currently. I will do a check if there is any other possibility, I will get back to you. 

    Thank you!

  • Profile Image

    Answered by cheekyface on February 26, 2014 at 05:54 PM

    datasphere
    - thanks for your suggestion.  I actually tried to do that using the form collapse fields but it seems there are issues with them and I can't set it up without losing anything below the form collapse field that I don't want to be hidden.  (I've set a second form collapse with open & hidden settings but it still hides everything below it).

    I'd be happy with somehting like that but I'm not good with code so I'd need to know what you did with the CSS and also it won't help me if the form has to be embedded.  I'm trying to avoid embedding forms into html as it's just more work and I don't need anymore :)

    ...I did just notice the CSS has been included on that page.  I'll see how it goes.  Thanks!!

     

    ashwin_d
    Thnaks for confirming what I suspected.  At least now I'll just wait until I hear of any new options in this regard.  Surely there's got to be a widget developer who can create something to do this.  I see there is a Terms & conditions widget but it also only opens a new page (not a pop-up). 

     

    Thanks for your help guys!!

  • Profile Image

    Answered by datasphere on February 26, 2014 at 06:08 PM

    dont mention it Danny,

    I am certain that the Jotform staff will add the changes you need soon

    Have you noticed improvments and stability of the platform in the past day or two

    (I started using Jotform a lot!)

    I think they are doing major platform update...

     

    Cheers!

    d.

  • Profile Image
    JotForm Support

    Answered by jonathan on February 26, 2014 at 09:33 PM

    @cheekyface

    Hi,

    I think the option that can work to have a pop-up window within your form is to embed an html page within the form that is within an iframe tag.

    My idea is like this

    1. Create your custom html page(i.e. terms-conditions.html ).

    2. Add the pop-up script and the link to your terms/condition page. And make sure this web page is working on your website or wherever you have it hosted.

    3. In your JotForm form, you can use the TEXT(html) field to embed the tems-conditions.html page using iframe code. Something like this

    <iframe allowtransparency="true" src="//terms-conditions.html" frameborder="0" style="width: 100%; height: 100px; border: none;" scrolling="no"></iframe>

    notice the src is the custom html page you created/hosted.

     

    Hope this help. Inform us if you need further assistance.

    Thanks.

  • Profile Image

    Answered by cheekyface on February 27, 2014 at 08:47 PM

    Thanks for that Jonathan.  
    Not sure if that will work though?  have you read the response by ashwin_d ?

    If script gets stripped on saving I suspect your suggestion will be a waste of time.  Will give it a go when i get some time though.

  • Profile Image
    JotForm Support

    Answered by ashwin_d on February 28, 2014 at 02:37 AM

    Hello cheekyface,

    1. Create your custom html page(i.e. terms-conditions.html ).

    2. Add the pop-up script and the link to your terms/condition page. And make sure this web page is working on your website or wherever you have it hosted.

    What my colleague have mention above that your the html page should be created and hosted in your own website. If the file in not there in JotForm, you can add any script and embed it through an iFrame.

    When the form is loaded, it will also load your external (HTML) file inside iFrame and the popup script will work normally because the script is not inside your form code and hence it will not be stripped.

    Do get back to us if you have any questions.

    Thank you!