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.

  • Profile Image

    Conditions and embeded forms

    Asked by chiseled_images on February 29, 2012 at 12:42 PM

    Ok, so I what was done here: http://jotformpro.com/answers/79363-How-can-you-open-another-form-depending-on-the-choice-a-user-makes#13
    I'm kind of on those same lines however looking for the form to show within the same form. 
    I've got my form here: http://jotformpro.com/form/20587309138962

    I've got two HTML boxes with two embeded forms using the source code from my other forms.  I set up a conditions to hide and revel the forms according to the users choice in the radio button.
    I works to hide the monyl donation box.  However I can't get it to ride the one time donation box.  I set up 4 conditions ( I tried with just two as well).
    Conditions are:
    if one-time chosen then hide monthly box
    if monthy chosen then hide one-time box
    if one-time chosen then show one-time box
    if monthly chosen then show monthly box.

    not matter what though it's always showing the one-time box.  any ideas?

    Page URL:
    http://jotformpro.com/form/20587309138962

    embed conditions source donation
  • Profile Image
    JotForm Support

    Answered by NeilVicente on February 29, 2012 at 11:40 PM

    You should not use full source codes to embed the forms within your main form as it will cause conflicts between the scripts making some, if not all of them, useless.

    Kindly use iFrame embed codes instead.

    To get your form's iframe codes:

    1.  Click Setup & Embed tab
    2.  Click Embed Form button
    3.  Choose iFrame option



    4.  Copy the codes provided in the succeeding screen

    By the way, please remove the empty condition in your monthly donation form as it causes the payment field to hide permanently.

     

    If all goes well, your main form should work like this - http://www.jotform.me/form/20598427367464

  • Profile Image
    JotForm Support

    Answered by NeilVicente on February 29, 2012 at 11:43 PM

    I forgot to mention that you should also keep the conditions in your main form as simple as possible. Delete unnecessary ones and keep only these conditions:

    if sponsorshiptype EQUALS one-time AND if sponsorship type is FILLED then show one-time box
    if sponsorshiptype EQUALS monthly AND if sponsorship type is FILLED then show monthly box.

     

  • Profile Image

    Answered by chiseled_images on March 01, 2012 at 12:22 AM

    Did you create that form using the JotForm editor or by hand?  Whenever I insert an iframe into the HTML section is doesn't take it. That was the first thing I tried.  Even on the form you linked to above, I cloned it.  It worked fine.  Then I clicked on edit the html section for one of the iframes, went to the edit html button. and the HTML and it was blank. I closed it, and vola the iframe disappeared. I guess I can clone your form and hope I don't have to change anything.  though it would be nice to be able to.

    Here's a video showing it happening: http://chiseledimages.com/misc/jot/

    any thoughts on why that would be happening.

    thanks.

  • Profile Image
    JotForm Support

    Answered by NeilVicente on March 01, 2012 at 12:29 AM

    Everything in that example was done using the Form Builder.

    You must click the HTML button in the toolbar to paste the iframe embed codes as the Free Text editor will strip codes out.

     

  • Profile Image

    Answered by chiseled_images on March 01, 2012 at 09:41 AM

    ah. perfect. thanks!