sc_field_readonly on form update mode

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.

On the side note. Sorry you have to do it field by field.
And the form_mode_update you want you can do in an inofficial way. To find it out check out your formname_apl.php and look for the piece: INSERT INTO
above there you may find something like (in my case):
$bInsertOk = $bInsertOk && empty($aInsertOk);
if ($bInsertOk)
You see that there is a $bInsertOk variable which is not defined by me but by scriptcase. You should be able to use that one.