Having checkboxes in survey pre-selected

Ahmad6
Giga Expert

Hi,

I am building a daiy checklist using the ServiceNow survey designer, and have come across two (hopefully) minor issues, and I'm not sure if they can be fixed so would love to hear other people's solutions for this.

- How do you create a "category" or heading for a set of questions? There doesn't seem to be an option to add a divider with text between the questions.

- How do you make a check box ticked by default? You may ask "What is the purpose if it is already checked" but this is a daily checklist with almost 100 things to check and will become very time consuming, and it is more important to identify failed items (though it looks better to show the client that of 90 checks, 5 different faults were identified as opposed to showing them just the faults). I am aware of the "default" field in questions, but I tried setting it to "true" but that didn't appear to do anything.

**EDIT** I have figured the category issue out (just needed to click the + icon on the end of the dark grey bar to create a new category). It doesn't help me too much though, unless I can set the categories to be minimised by default which would then make my whole checklist almost fit on a page, and then the person completing it just has to expand the necessary category to unmark a question (which we then plan on generating a task based off the unchecked questions).

1 ACCEPTED SOLUTION

under the survey question,


create business rule with the following:


set the metric.data type is checkbox


set the field value to 1 and string value to true



find_real_file.png


View solution in original post

3 REPLIES 3

Martin Kurniawa
Mega Contributor

what? nobody answer this question? how rude!


anyway.. we have fixed this issue by implementing business rule.


under the survey question,


create business rule with the following:


set the metric.data type is checkbox


set the field value to 1 and string value to true



find_real_file.png


Additional information for those that don't know where to go, under the asmt_assessment_instance_question table you need to create a Business rule on insert, with the conditions "instance.metric.type = {the survey you're doing this for}", and also "metric.data_type = Checkbox".



With the above BR every time a person creates a survey it will tick all checkboxes for them and when the survey loads up they will all be checked (since the system first creates the survey then loads it for the user)