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

    Multiple Payment System

    Asked by fzornow on May 26, 2013 at 07:59 AM

    I add an embedded code script to html field. This works somteimes,

    but sometimes, the field looses the script information and the html sricpt

    code is deleted. I think, it happens, when I enter the field and leave without

    changing anything (or something like this).

     

     

    multiple payment payment system html field
  • Profile Image
    JotForm Support

    Answered by jonathan on May 26, 2013 at 11:45 AM

    Hi,

    The free text(html) field is a bit strict on text that are being embedded into it. Usually scripts are not allowed  to be embedded. This is the reason why scripts are being cleared.

    Try not using the Edit HTML button to embed the scripts.. use the HTML property instead. And then click OK button.

     

    Hope this help. Inform us if you have further question.

    Thanks.

  • Profile Image

    Answered by fzornow on May 26, 2013 at 12:30 PM

    Hi Jonathan,

    i tried it that way, but the script are lost all the times.

    I want to add different payment systems (with different subscriptions) in the last area of the form.

    Can you give me another hint?

    Thanks

  • Profile Image

    Answered by jeanettebmz on May 26, 2013 at 01:07 PM

    You might want to try to embed an URL that redirects to a page with the script, say a PHP page . Try to embed this into an iFrame,  or between  <form>  html tag

  • Profile Image

    Answered by fzornow on May 28, 2013 at 01:14 PM

    Hi jeanettebmz,

    would like to have a payment system, which allows various subscriptions.

    Therefore i check ion my form several conditions. Depending on the comnditions, one of 32 other forms should be displayed (with different subscription set). I generated these 32 forms in my account. I made all the conditions wotk with the wizzard, using 32 html fields, which appear or disappear. 

    But I can not include the script as it is described in

    How to Create a Basic Multiple Payment form

    Even if I do it the was jonathan describes. 

    Can you help me with an example?

    Thanks

  • Profile Image
    JotForm Support

    Answered by Welvin on May 28, 2013 at 03:42 PM

    Hi,

    This guide will help you on how you can update Multiple Payment Form: http://www.jotform.com/help/161-How-to-Update-the-Multiple-Payment-Form. Have you followed this before?

    Thanks

  • Profile Image

    Answered by fzornow on May 30, 2013 at 01:23 AM

    Hi Welvin,I did it the way your forum article  "I am following this ok until I get to step #9My forms are set up so I h", but my scripts will be cleared - like jonathan told. I changed the way to paste them, but that doesn't help. I work's once in a while, but next time the html field cleared the script. I have some difficulties to understand the post, you rely on, Welvin. If I want to update a form, i need to have one in my basic form. But I can't integrate more than one Payment forms in my basic form.  Therefore I made 32 other forms, where the different possibilities of subscription are combined (because - as I learned -  I can use just one subscription in a form).I really don't see, how I can solve the problem with that post.  
  • Profile Image

    Answered by fzornow on May 30, 2013 at 01:51 AM

    Hi Welvin,

    i studied your POS template. How do I get this entry

    <div id="html_200"><p>Terms &amp; Conditions: You can place your Terms &amp; Conditions here<br />&lt;script type="text/javascript" src="//ying.jotform.com/jsform/21128037536449"&gt;&lt;/script&gt;</p></div>

    in the html field. 

     

    If I copy the the embede code, I get the following

    <script type="text/javascript" src="//form.jotformeu.com/jsform/31312039615344"></script>

    No "div" and no "html_id".

     

    I think as long there is a <script> notation, the code will be cleared, if it's />&lt;script it won't be cleared. Is it that way?

  • Profile Image

    Answered by fzornow on May 30, 2013 at 02:02 AM

    Hi Welvin,

    I tried it that way, the  />&lt;script will not be cleared but the script doesn't start. 

    I really don't know anymore what to do. 

    Your assistance is really really important for me. 

    Thanks

  • Profile Image
    JotForm Support

    Answered by Welvin on May 30, 2013 at 09:22 AM

    Hi,

    Let us revise the way you will edit everything. Follow this steps;

    1. Re-embed your form using our iframe method: How to Get Form iFrame Codes. The Iframe Embed Option will give you this example codes:

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//form.jotformpro.com/form/30663105761954" frameborder="0" style="width:100%; height:1156px; border:none;" scrolling="no"></iframe>

    <script type="text/javascript">window.handleIFrameMessage = function(e) {var args = e.data.split(":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight":iframe.style.height = args[1] + "px";break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

    Important: Only get the Codes highlighted in YELLOW. Delete the codes highlighted in Orange.

    2. Paste the Iframe Embed Codes into the Free Text HTML Field. Make sure to always use the HTML Button, do not use the "Edit HTML" button found in the Field:

    3. Still, when you edit the Free Text HTML field, always use the HTML Button from the Toolbar. This way, no codes will be stripped down. No Codes will be transform from ASCII to HTML Codes.

     

    I hope this works for you this time.

    Thank you!

  • Profile Image
    JotForm Support

    Answered by Welvin on May 30, 2013 at 09:24 AM

    This line should also be deleted from the iframe codes. I have it highlighted but after posting, the color disappears.

    <script type="text/javascript">window.handleIFrameMessage = function(e) {var args = e.data.split(":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight":iframe.style.height = args[1] + "px";break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

     

    Thank you!