So i’ve spend a couple hours googling and reading the manual. For the life of me i cant figure out how to do this.
For non administrators i want to make fields read only in update form mode. I cant seem to determine what mode the form is in to do it.
The manual gives this example
if (sc_btn_new)
{
sc_field_readonly({my_field});
}
Which works for the new (insert) mode of the form. Although all it does is “checks” if the new button was clicked.
Using
sc_btn_update
only works when you click update.
What i’d like to do.
if ([usr_priv_admin] !='1' && [B]form_mode_update[/B] )
{
sc_field_readonly({CN});
}
As a side note. Can I had multiple fields in the sc_field_readonly? I tried using comma’s and ; but neither worked.