Products used: Gravity Forms and PayPal add-on
Scenario: Form is being used to allow users to pay for different days of a multi-day event. They may want to participate in days 1,3,5 (or 1,2,3, etc.) of a six day event. The number of days that an event spans can be calculated from the the custom field data for our 'event' custom post type, so we can get a total number of days that the event spans.
Problem: How do I set up the form element (I am guessing that I could use the pricing field "Option") to show a checkbox for each day in the event? If the event spans 4 days, I need 4 checkboxes, 5days, 5 checkboxes, etc. How can I feed that variable into the "Option" pricing field?
I am thinking about having the checkboxes set up like so:
X - 1 Day
X - 2 Days
X - 3 Days
But the client may decide to set up the days like so:
X - Day 1
X - Day 2
X - Day 3
How can I feed the variable of the number of days into the form?