Default answer from script in Assessments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2019 07:31 AM
We have a requirement to default some of the answers on an assessment based on values from the Assessable record. I have been playing with an option in the Assessment Metric method called “Default answer from script” which would insinuate that I could default the value in a custom script. However I put the code below in the script and some variations of it with no success. The logs seem to be printing properly with the right values but i’m not seeing the Assessment answer default to what I’m trying to set it to. I am using the "Yes/No" data type right now, but I have also tried it with String and Number with no success. Has anyone had experience with this or has any ideas about another way to set the Assessment answer default value on load?
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 09:30 AM
Hi dng, did you ever get this to work correctly? I am trying the same and unsuccessful in getting the assessment question to display an answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 08:30 AM
Hey DNG, did you ever find a solution for this? Doing something similar with risk identification assessments, and the values aren't quite acting right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 02:43 PM
Hi @dng I have the similar requirement to default answer based on script. Did you ever find solution for this?