Contribution Form (Itemized): Optional Fields
A basic PAC 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 on the payment screen.
Four parameters are required:
no_edit_amounts
to require the user to go back to the first screen to edit amounts, where some of the the basic calculation work is doneshow_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