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.

dynamic checkbox labels

  1. RealDesign

    I am working on an event listing/registration website. A sample of an event registration form is:

    1) I am using Types and Views to create the custom Event post type. (therefore I can make a custom field for each option if needed.)
    2) I want to use Gravity Forms to create a registration form for the event where they select their meal and calculate their total cost
    3) I don't really want to have a unique form for each event because the people entering the event data may or may not be able to handle adjusting the form itself to reflect the meals. (Unless someone can suggest a way to have them only be able to access the two fields I want them to change?)

    In the options for the event, I have the person entering the data specify a) what the meal choices are and b) what the cost / meal is

    I would then like GF to pick up that info and populate the relevant fields in the form (you can see that for now I just have "generic" options and expect the person filling out the form to look up the right values from the list above.)

    I am happy to give access to the site if that will help

    Any help would be greatly appreciated.

    Posted 7 years ago on Monday April 1, 2013 | Permalink
  2. Sounds like you will have this form embedded in many posts, and each post will have custom fields to hold the meal choices, and the cost per meal. Is that it, in a nutshell?

    If so, you want to grab that information and have that change dynamically for the form that is embedded in that particular post, which is an event. Is that correct?

    How will you present the meal choices and prices to the visitor in the form? What format is the meal choice and cost stored in now, in the custom fields?

    Posted 7 years ago on Monday April 1, 2013 | Permalink
  3. RealDesign

    The form is set up to be a single created form that is used to capture registration info from every event created. And yes, part of entering an event that people can register for is to indicate the meal choices and prices. Right now, it is a freeform text field, but I can make each meal it's own field and I have no problem limiting them to 3 if that helps the situation. The meal cost would be one price per event (not variable by meal)

    Other than passing in the names and costs of the meals to the form, I suppose if there is an easy way to duplicate the form and modify just those fields that would also work.

    The one other aspect I forgot about yesterday is that eventually we would like the form to be sent to a specific user based on the event chosen.

    (This is a series of events sponsored by different rotary clubs. We want to be able to add more clubs easily without having to re-code everything. Each club would have a single person entering event info for them ... I was hoping to not have to ask them to do more than add and event and a NextGen gallery. If you can think of a VERY simple way to duplicate the form for each event and only allow a few fields to be changed that would actually be a good thing)

    Posted 7 years ago on Tuesday April 2, 2013 | Permalink
  4. And yes, part of entering an event that people can register for is to indicate the meal choices and prices.

    Can you explain how an event is created, and how the meal prices and choices are currently stored as part of the event?

    Posted 7 years ago on Friday April 5, 2013 | Permalink