Script Helper
QDF-004 Members Test before use
Default tobacco answer from the Smoker flag
Pre-fill a tobacco question from the person record's Smoker flag.
Questions › Set DefaultQuestionSetDefaultBeginner
Test before use. This script hasn't been tested by Catalyst Workflow yet. Run it in a non-production case first.
JScript.NET
1// QuestionSetDefault — Tobacco from PersonView.Smoker
This script is for members
Members see the full code, the values to change and the cautions.
See membershipAlready a member? Sign inHow it works
Converts the boolean Smoker flag into the 'True'/'False' string the question expects.