Title: CSS Code &amp; Conditional Logic
Last modified: August 24, 2016

---

# CSS Code & Conditional Logic

 *  Resolved [FleetAdmiralD](https://wordpress.org/support/users/fleetadmirald/)
 * (@fleetadmirald)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/css-code-conditional-logic/)
 * Hi.
 * I’ve been using this with Gravity Forms, obviously, and I’ve come to a point 
   where I’m quite puzzled. Put simply, I don’t understand the CSS code necessary.
   At all.
 * I’ve created a multiple choice quiz, and I’ve set the values as “A, B, C, D” 
   etc., and then attributed each value to a confirmation answer.
 * I have a hidden field open for my result, but I have no idea how to begin writing
   the code necessary to basically say “See which value appears most often and direct
   to that answer”. I don’t know how to get the result in the hidden field. It’s
   really confusing me, unfortunately.
 * If you could help at all I would be hugely appreciative – even pointing me in
   the right direction would help. (I also don’t know where to actually put the 
   bloody CSS) I’ve been searching for a solution pretty much all day and I need
   it.
 * Thanks in advance.
 * [https://wordpress.org/plugins/gravity-forms-personality-quiz-add-on/](https://wordpress.org/plugins/gravity-forms-personality-quiz-add-on/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [dabernathy89](https://wordpress.org/support/users/dabernathy89/)
 * (@dabernathy89)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/css-code-conditional-logic/#post-6126983)
 * So, you shouldn’t have to write any code/logic yourself. This plugin will figure
   out which value (“A”,”B”,etc) was selected most often and assign it to the entry
   as a meta field (different from a hidden field; you don’t need to add it to the
   form yourself).
 * You would then use that calculated answer in your conditional logic. Check out
   the last screenshot here:
 * [https://wordpress.org/plugins/gravity-forms-personality-quiz-add-on/screenshots/](https://wordpress.org/plugins/gravity-forms-personality-quiz-add-on/screenshots/)
 * In that screenshot, the text “First Choice” is one of the values that I had in
   my quiz. So you would replace that with “A” or “B” or whatever.
 * Does that make sense?
 *  Thread Starter [FleetAdmiralD](https://wordpress.org/support/users/fleetadmirald/)
 * (@fleetadmirald)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/css-code-conditional-logic/#post-6126998)
 * Thanks so much dabernathy89, your help is invaluable.
 * I was clearly doing something very wrong but thanks to your advice it works.
 * Thanks again for a prompt response and fantastic assistance.
 *  Plugin Author [dabernathy89](https://wordpress.org/support/users/dabernathy89/)
 * (@dabernathy89)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/css-code-conditional-logic/#post-6127007)
 * Great, glad you got it working!
 *  Thread Starter [FleetAdmiralD](https://wordpress.org/support/users/fleetadmirald/)
 * (@fleetadmirald)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/css-code-conditional-logic/#post-6127172)
 * I was hoping you could help me with one last issue…
 * On the confirmation page, I would really like the results to appear as a pop-
   up overlay with Share prompts for Facebook, Twitter, etc.
 * The overlay sounds like a bit of a longshot, but do you have advice in regards
   to the Share buttons? Can I just embed them in the Confirmation HTML?
 * Thanks again dabernathy.
 *  Plugin Author [dabernathy89](https://wordpress.org/support/users/dabernathy89/)
 * (@dabernathy89)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/css-code-conditional-logic/#post-6127177)
 * Yep, you should be able to drop pretty much any HTML into the confirmation box.
   You can also set redirects instead of a text confirmation, if you have pages 
   on your site that already contain share buttons.
 *  Thread Starter [FleetAdmiralD](https://wordpress.org/support/users/fleetadmirald/)
 * (@fleetadmirald)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/css-code-conditional-logic/#post-6127180)
 * Thanks again, again, dabernathy. Your help has been invaluable and your add-on
   works brilliantly. Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘CSS Code & Conditional Logic’ is closed to new replies.

 * ![](https://ps.w.org/gravity-forms-personality-quiz-add-on/assets/icon-256x256.
   png?rev=999892)
 * [Gravity Forms Personality Quiz Add-On](https://wordpress.org/plugins/gravity-forms-personality-quiz-add-on/)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-personality-quiz-add-on/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-personality-quiz-add-on/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-personality-quiz-add-on/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-personality-quiz-add-on/reviews/)

## Tags

 * [assessment](https://wordpress.org/support/topic-tag/assessment/)
 * [code](https://wordpress.org/support/topic-tag/code/)
 * [css](https://wordpress.org/support/topic-tag/css/)

 * 6 replies
 * 2 participants
 * Last reply from: [FleetAdmiralD](https://wordpress.org/support/users/fleetadmirald/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/css-code-conditional-logic/#post-6127180)
 * Status: resolved