Question T16874
Visible to All Users

dropdown multiselect not working

created a year ago
Code
Survey.Serializer.addProperty("payment", { name: "stripkeysrc", type: "choice", category: "Stripe Payment Options", //default: 'pageload', visibleIndex: 0, displayName: "Stripe Keys", isRequired: true, //choices: ["attempt on page load", "initiate via button"], choices: [ { value: "default", text: "User Account Level Keys Here" }, { value: "formspecific", text: "Form Specific Keys" }, ], "multiSelect": true, onSetValue: (survey, value) => { // ... // You can perform required checks or modify the `value` here // ... // Set the `value` // survey.setPropertyValue("customNumericProperty", value); // You can perform required actions after the `value` is set // ... survey.setPropertyValue("stripkeysrc", value); } });

Answers approved by surveyjs Support

created a year ago

Hello,
I'm afraid that a choice property type doesn't exist. If you wish to create a custom property of a multi-select dropdown type, set the property's type to "multiplevalues".
For more information on available property types, refer to the following guide: Add Custom Properties to the Property Grid.