This topic is locked

Easiest way to show Y / N?

7/14/2013 9:27:14 PM
PHPRunner General questions
R
rgfischerjr author

What is the easiest way to show a Y/N on the list pages when using a Checkbox on the Add / Edit pages?

C
copper21 7/15/2013

Double click the field you want to show Y/N on and check the box that states "Use different settings for all pages". Click on the list page tab and select "custom". Put this code in:
if ($data["YOUR_FIELD_NAME"] == 1)

{

$value = "Y";

}

else

{

$value = "N";

}
Replace YOUR_FILED_NAME with the name of the field that contains the 0/1 value.
Brian