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

    Need a popup window with a form that when completed and submitted will then update the form on the main page for submission to the database.

    Asked by shom on July 03, 2013 at 08:29 AM

    I don't know if I'm in the right place.  I am not too fluent in Javascript, I've been doing most of my work in php and mysql.  I am currently working on a form for data entry.  What I want to happen is for a user to select an item from a drop-down menu which would then open up more options and so on, I think there is about 5 levels.  Once that is completed and the data is submitted to the database, I want the user to be able to update the output through a popup form.  So it would look like this.

    select one out of a list of 60.  this would then make available the items available to what was selected first.  Then after this one is selected then there would be a few more options to pick, this time 2.  Once that is complete, there would be another option for 3 more items.  Now once that is done and submitted to the database, the data would then be output to the user with buttons to customize each thing selected.  So item one would have a few buttons to customize that one item.  When the button is clicked a popup or lightbox would come up where the user can make their selections and then click submit and all of that data would then update the original output but not go to the server yet.  Once all items are customized then the user would be able to submit the form on the main page showing the output and that would update the database.

    I have the ability to write everything.  I have the database set up, but I can't figure out how to make more options appear after each selection, and I son't know how to do the popup window or lightbox to do what I want it to do.  I don't know where to start, and I'm finding a lot of ideas, but I don't know how to turn those ideas into what I need.  

    Please let me know if you need more information.  Right now I only have the database done, so I don't have a screenshot or a url to show.

    customized Selection selected select
  • Profile Image

    Answered by Shom on July 03, 2013 at 08:39 AM

    I was able to find help with a popup window, but I would like to use lightbox or something like that so that the the popup isn't blocked.  Am I asking this in the right place?  Would I be able to somehow do an if statement in php within the form.  if item1 selected show item2?  I don't know, if I'm asking on the wrong site, please direct me in the right direction.

  • Profile Image

    Answered by sidharth_kch on July 03, 2013 at 10:21 AM

    @Shom

    I am not sure if you want to achive this within the JotForm editor. Unfortunately such feature is not available. 

    But a combination of workaround should help you achieve your requirement. After submission you can redirect your user to a custom thank you page where you can capture the posted data and prepopulate the main form for submission.

    You may like to check our conditional logic feature to achieve your requirement of populating dropdown based on the value of other value.

    Please refer this guide:

    http://www.jotform.com/help/196-How-to-Hide-or-Show-Multiple-Fields-at-Once-Based-On-a-Single-Conditional-Entry

    http://www.jotform.com/help/57-Smart-Forms-Using-Conditional-Logic

    Let us know if you need further assistance.

    Thanks,

    Sidharth

  • Profile Image

    Answered by asa  on May 04, 2016 at 04:58 AM

    asdasdasd