Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.6.0
-
Component/s: Staff Interface
-
Labels:None
Description
- Update adding/editing package options:
- Add a Default column at the end of the table for every type
- Quantity: Text input to set an integer value that is validated to be between min/max at the appropriate step
- Checkbox: Checkbox to set whether the checkbox field is checked by default
- Radio: Radio to set which radio option is selected by default
- Select: Radio to set which drop-down option is selected by default
- Text/Textarea/Password will not support a default value at this time
In the backend, a new `default` field (after `value`) would be added to `package_option_values`, default NULL 0, int(10), denoting whether this record is the default value (0 or 1). In the case of quantity values, the default would be the actual quantity value (e.g. 25)
When creating or editing configurable options, add a radio field at the beginning of each option fields of the type dropdown and radio that allow the item to be selected by default.
Currently the default option becomes the first option, but this isn't always ideal.
Issue Links
- blocks
-
CORE-3089 Order: Update config options to support default values
- Closed
- is blocked by
-
CORE-1832 Allow config option values to be marked inactive
- Closed
- is duplicated by
-
CORE-2968 Allow config option values to be set as default
- Closed
- relates to
-
CORE-1082 Allow a default option to be specified for custom client fields
- Closed
Why is this limited to Drop-down and Radio options? Quantity and checkbox options can also be supported by allowing for a set of default values to be set. Checkbox options could have multiple values set while all the others would only allow for one default value to be set.