Survey - Set Default value of the Survey question

Naveen84089
Tera Contributor

Hello,

 

There is a requirement related to a survey. I need to auto-populate the default value(dynamic) of one of the survey questions when it loads.

Detailed requirement: We have created a UI action that opens a survey form when clicked. Currently, the survey questions appear blank. One of the survey questions is called "Serial Number." We want the value of this "Serial Number" question to be auto populated from the form where the UI action was triggered.

Thank you in advance.

2 REPLIES 2

Ct111
Giga Sage

Check the response of Allen in below 

LINK

 

It might be good reference point.

Ankur Bawiskar
Tera Patron
Tera Patron

@Naveen84089 

you can use after insert business rule on assessment_instance table and populate the survey question with the task number or query that task and get serial number

see this link and enhance your logic

populating task details on survey form 

Steps on high level

1) query asmt_assessment_instance_question with the asmt_assessment_instance field as your current Assessment instance

2) search for the correct survey question and update the Value field in it

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader