PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Multi Page Form - gform_field_choices

  1. I need to create a form that has 3 pages:

    Page 1: has a list of items with checkboxes

    Page 2: generated list of checkboxes containing only the items that were selected on page 1

    Page 3: 5 Paragraph Fields labeled with the selected items on page 2

    I want to use the gform_fields_choices to create the list on page 2 by accessing the selected items from page 1 (Is this possible and if so are there any examples of code doing something like this)

    If I can do page 2 then I assume I can do page three with similar logic from page 2 using the gform_field_input or gform_field_content filters

    Any advice?

    Posted 9 years ago on Saturday January 26, 2013 | Permalink
  2. I don't think gform_field_choices will work for you, since that is designed to change the checkboxes before the form is rendered. If you are on page two of a multipage form, the form has already been rendered in its entirety.

    Is step two to narrow down the choices made in step one? So, of the selections made on page one, you show all of them on page two, and the visitor gets to pick some of those? And then what happens? Why are there 5 paragraph fields? Are there 5 paragraphs for each checkbox choice?

    Do you have any of this online now?

    Posted 9 years ago on Wednesday January 30, 2013 | Permalink
  3. At this point I only have it on my localhost server as I'm working on the development.

    This application is used to help people narrow down a selection to their top 5 most important and then be able to enter a description of what each means to them and will then be rendered as a single post that will also allow them to print the post in a format they can hang as a reminder.

    So step one gives the a selection of 40 which they go through and select up to 15 that jump out at them.

    Step 2 they are presented with the 15 they selected so they can focus on picking their top 5 without distraction. So I only want to show the ones selected from step 1.

    Step 3 just shows their top 5 and allows them to enter their comments about each.

    Posted 9 years ago on Wednesday January 30, 2013 | Permalink
  4. One thought I had was perhaps I need to actually create 3 separate forms as opposed to a single form with 3 pages.

    Then at the end of each form, I would need to intercept the entry an use the data to pre-populate the next form.

    This is my first use of Gravity form that is not just a straight configuration and requires coding.

    I have a lot of coding experience, just not with Gravity Forms or Wordpress, so if you can point me to an example that has similar logic to what is needed here, I should be able to take it from there.

    Thank you for your help.

    Posted 9 years ago on Wednesday January 30, 2013 | Permalink
  5. I agree with using three forms. You can pre-populate values in the next form by passing the values with the query string. Here is documentation on how to do that

    Posted 9 years ago on Thursday January 31, 2013 | Permalink
  6. ok, what if I create 3 forms for this, what method is best to use to catch the data from the first form as it is submitted and carry it forward in order to customize the checkbox list on the next form.

    Unless I am reading it wrong, Dynamic_Population is used for populating the Value of the field which would have no effect on the list of checkbox items that I need to customize.

    Posted 9 years ago on Friday February 1, 2013 | Permalink
  7. Dynamic population is for setting field values, true.

    In your case, you may have to capture the data in form one, then use a gform_pre_render filter function to change the checkboxes which are shown.

    Posted 9 years ago on Monday February 4, 2013 | Permalink