Contribution Form: Optional Fields
A contribution form where each amount represents a number of tickets (the ID of the amount input is that number). When an amount is selected, the proper number of guest fields will be made visible. Some of the guest fields are not required.
Three parameters are required:
show_guest_info_fields => 1
to render the the guest fieldsamounts_are_tickets => 1
to trigger the logic to show/hide the guest fields based on the amount selectedoptional_guest_fields
, a comma-separated list of field names to specify which guest fields should not be required. Format the name minus the guest number part, e.g. forguest_x_name
, usename