Cannot order more than 22 options in CiviCRM Options control

Created on 26 February 2024, 10 months ago

1.0 Problem/Motivation
The row-weights dropdowns for each option in a CiviCRM Options control has a range of -10 to +10, regardless of the number of options present. The row-weights dropdown therefore cannot be used to reorder any option to a spot below the 11th option.

In addition, when row weights are hidden and there are more than 22 options, and an attempt is made to drag an item to a position below the 22nd option, that new position is not preserved when the control is saved and re-edited.

2.0 Detailed steps to reproduce (embed screenshots)
In CiviCRM, create an Alphanumeric checkboxes field that has more than 22 options.
On the Webform CiviCRM tab, enable that field.
On the Webform Build tab, edit that control, make it a "CiviCRM Options" control, choose Static Options, hide Row Weights, and drag any item to the bottom position.
Save the control.
Re-edit the control and observe that the moved option is in the original position.

3.0 Proposed resolution
I will submit a PR shortly.

πŸ› Bug report
Status

Active

Version

6.2

Component

Webform/Drupal

Created by

πŸ‡ΊπŸ‡ΈUnited States BobSCA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024