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.

  • Profile Image
    Asked 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.

  • Profile Image
    Answered 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 on July 03, 2013 at 10:21 AM


    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:

    Let us know if you need further assistance.



  • Profile Image
    Answered on May 04, 2016 at 04:58 AM