Skip to main content
Question

Decision Condition Expression

  • Nov 3, 2026 9:29 PM UTC
  • 1 reply
  • 13 views

Forum|alt.badge.img

I am trying to build a process that bypasses the decision task when certain conditions are met. The form I built has 4 custom fields that contain yes or no single select options for PII information.

The process will need approval if there are any forms of PII but if all of the options for PII are no then it should bypass and no approval decision should be sent out.

This is what i have tried but it doesn't work and keeps generating and assigning the decision to me when i test it.

if(
    $new.parentEvent.W("CONFIDENTIAL PII").name = "No" and
    $new.parentEvent.W("RESTRICTED CONFIDENTIAL PII").name = "No" and
    $new.parentEvent.W("PCI - CREDIT CARD DATA").name = "No" and
    $new.parentEvent.W("PROTECTED HEALTH INFORMATION").name = "No",
    true,
    false
)

I have also tried it with “.shortCode” instead of “.name” and it behaves the same.

I have even tried it with just $new.W(“custom field name”) dropping the parentEvent

1 reply

Forum|alt.badge.img
  • Author
  • Do Gooder (Customer)
  • Nov 9, 2026 4:08 PM UTC

I ended up removing the If entirely and it seems to work with just the conditions joined with ands.

$new.parentEvent.W("CONFIDENTIAL PII").name = "No" and $new.parentEvent.W("RESTRICTED CONFIDENTIAL PII").name = "No" and $new.parentEvent.W("PCI - CREDIT CARD DATA").name = "No" and $new.parentEvent.W("PROTECTED HEALTH INFORMATION").name = "No"