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.

Dynamically set options for checkboxes or PricingFields->Options - possible?

  1. 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?

    Posted 10 years ago on Wednesday November 7, 2012 | Permalink
  2. Do you have an example online of the work you have accomplished so far? I'm having a hard time envisioning how you are collecting the information and where it needs to be used. Thank you.

    Posted 10 years ago on Monday November 12, 2012 | Permalink
  3. Could you could the number of checkboxes selected and base the price on that?

    Posted 10 years ago on Monday November 12, 2012 | Permalink