Can I call a subroutine of questions?

  • Profile Image
    Jody Massey 
    Asked on March 23, 2016 at 04:33 PM

    For example - I will see either 1 or 1000 pumps and motors. I need to pull a subroutine of questions on all of these that would be AGE.

     

    Subroutine AGE

    IF the multiple choice of AGE selected is original, then no change.

    IF the multiple choice of AGE selected is Years Old, then bring up field YEARS OLD.

    IF the multiple choice of AGE selected is Year Made, then bring up field YEAR MADE.

     

    This subroutine would be asked of every pump and motor. I also ask if the pumps or motors have a VFD. If it does, then I need to call the AGE  subroutine for the VFD.

     

    Can your product do this properly?

     

    Can your product let me enter as many pumps and motors as needed before I submit it? 

  • Profile Image
    Boris
    Answered on March 23, 2016 at 05:06 PM

    If you want your form fields to be conditionally shown, you can apply conditional logic to your form by using show conditions:

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

    This works on regular form fields, and allows you to set up show/hide conditions such that desired fields are displayed based on answers made in other fields.

    > Can your product let me enter as many pumps and motors as needed before I submit it?

    When it comes to having a dynamic number of entries available, this can be achieved only by using one of our widgets such as Configurable List or Infinite List widgets:

    http://www.jotform.com/help/252-How-to-Add-a-Widget-to-your-Form

    These widgets allow adding as many rows as you need by simply clicking on the Add/Plus button to have another row of fields. However, inside these widgets it is not possible to conditionally show only some questions in a row based on what is being entered in that row.

     

    What this means is that if you want to have form fields conditionally shown in the manner you described, you should use regular form fields and conditional logic instead of these widgets. The number of rows (pumps and motors) that your users can enter will depend on the number of form fields you add to the form.

    If you need any further clarifications or assistance, please let us know.