Syntax for Checkbox conditions on scripted e-mail post-function.

Bryan McMillan May 6, 2015

What is the proper syntax for a condition involving one or more selections of a checkbox field?  We have for example 'Affected Areas' with choices like, Application, Database, Network, etc.  The syntax:

 

cfValues['Affected Area'] == 'Database'

 

Doesn't work.

 

Regards,

 

Bryan

3 answers

1 accepted

0 votes
Answer accepted
Bryan McMillan May 8, 2015

Ok, after some significant digging on the Internet I found a solution for check boxes that works:

 

cfValues['Affected Area']*.value.contains("Database") 

 

Thanks much Jamie!!!!

 

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 8, 2015

that's the same as my example...

1 vote
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 6, 2015
'Database' in cfValues['Affected Area']*.value
0 votes
Jozef Kotlár
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 6, 2015

Did you ever tried Power assertion in _Simple script condition_ interface? https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-PowerAssertions

Suggest an answer

Log in or Sign up to answer