Multiple Record Form

Hi,

In multiple records form that i need to set read only field when field contains no data.

I was trying to adopt below code on OnLoadRecord event but no luck.

if ({vehicle_group } == false )
{
sc_field_readonly({vehicle_group }, ‘off’);
}
else
{
sc_field_readonly({vehicle_group }, 'on);
}

Much appreciated for any help in this regards.

A multiple record form behaves as a grid, at least in a way. That means that properties set to a field will apply to all the rows on your page. In this case you might consider a standard grid that links to a form, or to apply php code to generate an error message. Disadvantage: it will only get triggered on update.

I’m having same issue, with multiple record updates.

Thanks Albert, your response put me in different direction to think to resolve my concern. Finally I have adopted similar to this link http://www.scriptcase.net/tutorials/grid-and-form-in-the-same-page/