Re: Set form to READONLY by user level
That is how I do it … I create a separate form for view. I then decide to show the add/edit/delete buttons if they are allowed.
I just create an edit form and get it like I want, then I will duplicate it to an add form and then a view form (view: all fields RO). It is a bit more work since you have multiple forms, but I have more control over my forms than trying to use the default logic in SC5 when in insert/update mode.
I always present a VIEW screen to all users. IMO, there is no need to EDIT unless need to, even if you are Admin.
Your option will work as well, using a condition for sc_link().
onRecord event:
if(level = admin_level) {
sc_link(column,edit_form, …);
} else {
sc_link(column,view_form, …);
}