In your field, add a "config" key to the array. See an example here:
"cmsPreference" => [ "type" => "MultipleSelect", "label" => t("Your CMS preference"), "description" => t("Choose one (version may be included)"), "required" => true, "searchable" => true, "config" => [ "sortable" => true, "options" => [ 'concrete5_6' => t("Concrete5 CMS 5.6.x"), 'concrete5_7' => t("Concrete5 CMS 5.7.x"), 'concrete5_8' => t("Concrete5 CMS 8.x"), 'typo' => t("Typo"), 'craft' => t("Craft"), 'wordpress' => t("WordPress"), 'pyrocms' => t("PyroCMS"), ], ], "view" => [ "type" => "values", // values, values_custom, keys, keys_custom --- all with _custom can have a "type_prefix" and "type_suffix" in this array "type_prefix" => "<div class='label label-info'>", "type_suffix" => "</div>", ], ],
As you can see, there is a "sortable" value with "true", so you can sort your options in the form. If you don't want that, you can set it to false or completely leave it out of the config.
Use, by you or one client, in a single end product. The total price includes the item price and a buyer fee.
Use, by you or a client, in 5 single end products. The total price includes the item price and a buyer fee.
Use, by you or a client, in x/xx single end products.
Upon request, quote will be made and sent to you via email.
Got something to say? Need help?
View support forum