I had to think about this a little differently., because checkboxes are not available for product fields. So I added a product I will never show, and attach all the sessions as options to that product. The product has zero dollars for the price. The options have $150 each for the price. Then, I have a product with a cost of -$100 which is shown conditionally only when all 4 sessions are purchased.
Then I added another product with an open quantity field, for the paper grading product, for $60 each. That will be added to the total as well.
I hid the first product (the one with zero dollar price) using this CSS added to my theme's stylesheet:
[css]
body .gform_wrapper li#field_383_1 {
position: absolute !important;
top: -9999px !important;
left: -9999px !important;
}
You will have to change the form ID (383) and field ID (1) to the id of the field as it appears in your form. You can view the source of the page to find out the id of the field to hide, or you can use a tool like Firebug to pinpoint the ID.
You can download my sample form here: http://pastebin.com/download.php?i=iNharead That is a direct download link. Rename the file with an xml extension (not txt) and you will be able to import it into your Gravity Forms installation.
Install that and see how it's configured and if it will work for you.
Posted 11 years ago on Tuesday April 9, 2013 |
Permalink