CodeSurvey.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);
}
});
dropdown multiselect not working
Show previous comments
(0)
Comments
(0)
Sign in to comment on this post
Answers approved by surveyjs Support
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.