Is it possible to prepopulate dropdown field with the next value

  • lewm
    Asked on October 7, 2018 at 6:46 PM

    I have a form for workers to report certain information for a given shift,the shift is selected via a drop-down menu containing elements like:

    3:00 pm - 4:00 pm

    4:00 pm - 5:00 pm

    ect

    when a worker submits an hourly shift report, I have them re-directed back to the form with some areas that would probably remain unchanged being pre-filled from the previous form like:

    ?name={name}&productionLine={productionLine}&...

    this is all working fine but I was curious if I could pre-populate the shift (hour) field by incrementing the previously filled value.

    for example, when they submit the form with "5:00 pm - 6:00 pm" selected from the drop-down, I would like for the hours section on the next form to be filled with the next item in the drop-down menu ie "6:00 pm - 7:00 pm"

  • Kiran Support Team Lead
    Replied on October 7, 2018 at 8:55 PM

    At the moment, I thought of having another hidden dropdown field with the same options to pass on the actual dropdown when the form is submitted. We may setup conditions on the form to copy or calculate the next value of the dropdown to to the hidden dropdown so that it can be used for prepopulation as shown below:

    ?dropdown={dropdownNext}

    153896000208102018 061007 Screenshot 10

    Please take a look at the following demo form:

    https://form.jotform.com/82797965284983

    Please get back to us if you need any further assistance. We will be happy to help.