I have this code on a Detail-Form (Editable Grid View) on Event onScriptInit:
if ($_SESSION['user']['groupid'] < 3)
{
sc_field_display({Field1}, 'on');
sc_field_display({Field2}, 'on');
}
else
{
sc_field_display({Field1}, 'off');
sc_field_display({Field2}, 'off');
}
When the User with GroupID >= 3 clicks on the icon for new record, sc_field_display({<fieldname>}, ‘off’) is not working and the “off-Fields” are displayed! The labels for the fields are (correct) not displayed. Why?