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.

Changing Pricing Based on Form Selections

  1. My form has fields for purchasers to tell me how long they do an activity each day and then has tiered pricing based on the number of hours of activity they do each week. Right now I have the purchaser complete the daily activity fields and then choose the pricing option that matches to their weekly hours (so they have to do the calculation themselves). Is there a way to instead attach values to the daily activity fields, which would then calculate the weekly amount, and put the purchaser into the correct pricing tier automatically?

    Example: Purchaser chooses Monday: 1hr (value = 1), Tuesday: 30min (value = 0.5), Wednesday 90min (value = 1.5), Thursday 2hrs (value = 2), Nothing Friday, Saturday, Sunday, This would calculate to 5 and would put the purchaser in the pricing tier of 5-7.

    Thanks!

    Alex

    Posted 12 years ago on Sunday May 20, 2012 | Permalink
  2. Alex, it sounds like you should be able to achieve this via our calculation fields. Then based on that calculated field result - show the correct tier via conditional logic. Do you have a link to this form?

    Posted 12 years ago on Sunday May 20, 2012 | Permalink
  3. Interesting, that would be fantastic. The form is at http://www.getfitpack.com/join-fitpack.

    Posted 12 years ago on Sunday May 20, 2012 | Permalink
  4. Just an update on this. I have been able to use a calculation field and show the correct tier via conditional logic. However, I would like to hide the calculation from the user's view. When I check "admin only" on Visibility that also removes the appropriate tier from view. Is there a way to hide the calculation, but still have it activate the conditional logic of the pricing tier?

    Posted 12 years ago on Monday May 21, 2012 | Permalink
  5. Right on man, glad to see you are getting this going! So instead of using the "admin only", you might want to resort to hiding the field with CSS via display:none. You can inspect the field via chrome dev tools or firebug for firefox and ID the field (each field has it's own unique ID). You could also create a class as well to add to each field, if there are multiples and target that class to hide them.

    Posted 12 years ago on Monday May 21, 2012 | Permalink
  6. Thanks so much. So this goes into my theme's style sheet? Unfortunately my CSS is awful... so if I've inspected (which I can do), my class is gfield and and my field ID is 122 what is the CSS I would put into my style sheet? Really appreciate the awesome support!

    Posted 12 years ago on Tuesday May 22, 2012 | Permalink
  7. Actually, you can use the gf_hidden class and apply that to your field that you want hidden (it will be in the Advanced Tab of the field editor). Then you won't have to worry about adding any custom CSS. Sorry I didn't think of that before, but that will be much easier. :)

    Posted 12 years ago on Tuesday May 22, 2012 | Permalink
  8. That works! I'm sure I'll have more questions as I go, but I really appreciate all the help!

    Posted 12 years ago on Tuesday May 22, 2012 | Permalink