This topic is locked

How To Hide an Unchecked Checkbox

4/20/2016 1:40:49 AM
PHPRunner General questions
mcgeepj2 author

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.

Sergey Kornilov admin 4/21/2016

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.