Script Helper
TXT-001 Free Test before use
Text by residence state
Show different paragraphs to employees in different states.
Text banks › Text bankTextBankBeginner
Test before use. This script hasn't been tested by Catalyst Workflow yet. Run it in a non-production case first.
JScript.NET
1This text shows to everyone.2 3<% if (Event.Employee.Address != null) { %>4 <% if (Event.Employee.Address.State == 'TX') { %>5 This text only shows to Texas employees.6 <% } else if (Event.Employee.Address.State == 'CA') { %>7 This text only shows to California employees.8 <% } %>9<% } %>Highlighted lines are marked CHANGE — swap in your own values before using.
How it works
<% %> blocks wrap normal HTML/text in JScript conditions.
Values to change
- States and text