Question T5691
Visible to All Users

Add checkbox to properties to flag questions with a boolean value?

created 5 years ago

Hello,

For the project I am currently working on, I am looking to allow users to flag questions to be prepopulated while building a form. For example, a user may build a form that will then be sent to other users to fill out each month. When they create the form, fields that are not likely to change such as eye color, birthday, sex, etc. should be able to be flagged to pre-populate with user data when the user opens them.

What I would like to do is add a checkbox to the properties tab when adding a form field that a user can check, so that on creation, I can attach a flag to the form field to pre-populate with user data if it is present. Is it currently possible to accomplish this modification of the properties page with survey JS? If not, do you have resources that would prove useful with somehow allowing users to flag questions with a boolean value that can be processed on save?

Thanks!

Answers approved by surveyjs Support

created 5 years ago

Hello,

If you want to add a custom boolean property to every question, then here is the sample on our site - https://surveyjs.io/Examples/Survey-Creator?id=addproperties&theme=bootstrap

And here is the working sample of how to add a new boolean property "myFlag" to question - https://plnkr.co/edit/0J2Id6ElJfNWmM9p

Thanks, Serge
SurveyJS Team