Hi
I have two groups with users assigned using the SC Security module (SC V9.8.011)
I would like one group to be able to insert a form and have access to all fields, but on update only access certain fields.
The other group should be able to insert and update all fields.
I’m trying something like this:
if ([var_group] == 0) AND (!sc_btn_insert) // Set as read-only)
{
sc_field_readonly({faultCat}, ‘on’);
sc_field_readonly({faultActivity}, ‘on’);
sc_field_readonly({ReportedBy}, ‘on’);
sc_field_readonly({Photo}, ‘on’);
}
If I omit the second condition, the form works as expected (key fields are set as read only), however I cannot seem to enable fields where the activity is an insert rather than an update.
Any clues?
Regards
Craig