Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress WordPress Hooks - Actions and Filters Hooking Into WordPress Plugins Gravity Forms Example

Adrienne McCurdy
Adrienne McCurdy
37 Points

How to set up Gravity Form answers to sort 'Quiz' questions into categories on a new WordPress page?

I am using Gravity forms and need help changing an existing form, version 1.9.19 by rocketgenius.

I have 16 quiz questions that each have 4 types of 'answers' using radio buttons (can only choose one at a time, they are weighted). These 4 'answer' types are really categories to help people prioritize statements (questions).

I want people to click on 'submit' for the form and then have the statements (questions) reorganized under their level of priority (value of answer) on another page.

A WordPress page is already set up to populate their 'answers' to the 'questions' in a standard way:

'''WordPress [su_row] [su_column size="2/3"]1. The youth program makes a difference in people's lives.[/su_column] [su_column size="1/3"]{1:2}[/su_column] [/su_row] [su_row] [su_column size="2/3"]2. Youth help plan events, projects and programs.[/su_column] [su_column size="1/3"]{2:3}[/su_column] [/su_row] '''

My clients want to reorganize it so that the 'answer' category acts as a header with the statements (questions) restated underneath them. It would look something like this, but I am not sure how:

''' <b>Core Value</b> (List all 'answer = 4' 'questions' below)

  1. The youth program makes a difference in people's lives.
  2. Youth have opportunities to learn from other youth.

<b>Priority</b> (List all 'answer = 3 'questions' below)

  1. Youth have opportunities to build relationships with the community.
  2. The initiative actively builds its own ability and the ability of adult supporters to engage youth. '''

Thank you! Adrienne