how do i set the number of available text fields to match previous numerical entry?

  • Profile Image
    Sarahnb1101
    Asked on February 08, 2016 at 02:31 PM

    Hi, very(!) new to JotForms and struggling with, what I presume to be, the basics!  please help!

    I want to have a scrolling number entry, for a visitor to complete a property survey, I.E.:

    Q. How many rooms in the building? (scroll button answer)

     

    From there, I would like an intuitive 'next' stage of labelling/distinguishing:

    Q. Label each room... (enter text box to allow 'naming')

     

    IF - the scroll selection was "1"

    I would like only one 'name field' to be visible for completion.

     

    IF - the scroll selection was "1059"

    I would like 1059 'name fields' to be visible for completion.

    this is an exaggeration, but you never know(!)

     

    hereto, if possible I would love my form to intelligently 'label' each name field... i.e.:

     

    "Room Name 1" - free type textbox

    "Room Name 2" - free type textbox

    "Room Name 3" - free type textbox

    etc

    (example screendump attached)

    please help me, thanks

  • Profile Image
    david
    Answered on February 08, 2016 at 06:18 PM

    There are a couple different ways you could accomplish this.  The easiest would be to allow the user to add as many new fields or sets of fields as they would like.  The configurable list widget:

    http://widgets.jotform.com/widget/configurable_list

    And the Matrix dynamique widget would allow them to do so:

    http://widgets.jotform.com/widget/matrix_dynamique

    You could also create a single field for each possible area and a condition to show each one.  For example.  If the maximimus area entries allowed was 1059, you would need to create 1059 fields, label each one individually, then create a single condition for each one.

    IF number of entries needed IS EQUAL TO 1

    show area 1

    IF number of entries needed IS EQUAL TO 2

    show area 1

    show area 2

    IF number of entries needed IS EQUAL TO 3

    show area 1

    show area 2

    show area 3

    And so on.