This topic is locked

Before record updated

12/23/2020 4:33:35 PM
PHPRunner General questions
A
ashumak author

Hi,
Trying to use the before record updated event so that if one field (Checkbox) is checked, then another field is set to "Active".

Just can seem to get the right...
BeforeEdit if ["finance_close"] == 1)

{

$values["status"] = ["Active"];
Any help is greatly appreciated...

Sergey Kornilov admin 12/23/2020

Something like this will do:

if ($values["finance_close"] == 1)

{

$values["status"] = "Active";

}