Blue
White
Purple
Green
Red
Orange
Blue Light
White Light
Purple Light
Green Light
Red Light
Orange Light
I want to hide a checkbox that is not checked. I tried this as described in the help file ('ret' is checkbox field):if (!$values["ret"]) $pageObject->hideField("ret");But it didn't work.
Try it without adding a condition first:
$pageObject->hideField("ret");
Once you got it working investigate the contents of $values["ret"] to write a proper IF expression.