webform_civicrm icon indicating copy to clipboard operation
webform_civicrm copied to clipboard

D9/10 - Fix ordering on payment table

Open jitendrapurohit opened this issue 11 months ago • 0 comments

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.

Contact Information

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.
First Line Item Amount

jitendrapurohit avatar Mar 06 '24 13:03 jitendrapurohit