Not applicable

Create new OnCell edit script.

Create new variable (lets say myFields) which will be array holding all your fields you want to make read only.

The just loop over this array and on every iterable use g_form.setReadOnly(myFields[i], true);

 

On second thought - you can try using g_list as well .