Element visible based on record criteria

All,
I am trying to show/hide elements based on an onDatachange method. I have the element showing and hiding based on the data change; however, it is doing it for all records and not just the selected record.

My method is:

if (whitechangeto==‘No’ )
{ //Set / Get the visiblity
elements.whitenew.visible =false;
}
else
{
elements.whitenew.visible =true;
}

Any suggestions would be greatly appreciated.

Thanks
Steve

Hi Steve,

if you navigate to the next record, than you have to call that method again, for that record.

attach it also for example to the onRecordSelection-property of that form!

Assuming you’re in a List/Table view or Portal: Unfortunally, you cannot enable/disable a field only for a specific record: You either enable/disable the entire colum or not.

Would be a nice feature though…

Thanks for the replies. I am in a list view. It would be nice to be able to do, but not critical.

Thanks again,
Steve