Hi, I have used the below code for sc_field_display on the onload event. When navigating -> to the next record the xwtrim on & xytrim off works for both model - XW or XY. if i add a second sc_field_display({xwengineno}, ‘on’) the script fails
if ({model} == ‘XW’) // Display field
{
sc_field_display({xwtrim}, on);
sc_field_display({xytrim}, ‘off’);
// when i add the below the scipt fails
sc_field_display({xwengineno}, ‘on’);
sc_field_display({xyengineno}, ‘off’);
//
}
if ({model} == ‘XY’) // Display field
{
sc_field_display({xwtrim}, off);
sc_field_display({xytrim}, ‘on’);