webform_civicrm
webform_civicrm copied to clipboard
D9/10 - Fix ordering on payment table
Overview
Ensure Payment table lists the amount options according to the order set on the build page.
Before
If there are multiple payment options on the webform, there are several display issues with the payment table.
- The list is not in the order of the build page.
- If the line item elements are of type Radio or Checkbox, a default
Contribution
label is displayed instead of the label configured for the element.
Eg, the Element order on the build page for this webform is
- Membership Fee
- First Line Item Amount
- Second Line Item Amount
- Donation Amount.
But the payment table displays some random order with labels incorrect for checkbox and radio inputs.
After
Fixed.
- Sorting is according to the labels set on the build page configuration.
- Label is fixed to ensure its displayed as per the element config.