Write a script/business rule to check if state is breach closed and if variables empty abort action

joshuacomeau
Tera Contributor

What to use and how to write script on a record form

 

when the field [state] is "breach closed" check if any of the following 4 variables are empty and if any of these 4 variables flag a note

ber_finalized
dc_reporting
initial_communication_to_tcwg
eip_laep_informed_of_breach


if are empty write the following message:

 

Please ensure that the following fields are completed prior to changing the State to Breach Closed:
BER finalized
Initial communication to TCWG
DC Reporting
EIP LAEP Informed of Breach

 

Hopefully the script can understand example:
BER finalized is filled out but the others are not then send the message.

 

1 REPLY 1

Bert_c1
Kilo Patron

there are multiple ways, two follow:

 

Client scripts

 

business rules

 

You lack details on what you're trying to accomplish. Provide more context and you may get better advice.