I'm need set readOnly in custom field when logged user not admin in record.js
if(app.user.get('type') == 'admin')
  //set readOnly field
else
  //set editable fiel
								I'm need set readOnly in custom field when logged user not admin in record.js
if(app.user.get('type') == 'admin')
  //set readOnly field
else
  //set editable fiel
								You should be able to adapt this Gist to do what you want:
Custom record view controller for setting entire record to read-only conditionally · GitHub
They key is to add the field name into the "noEditFields" array.
Do you know how I could apply this to the Revenue Line Item create subpanel view. So when you are on an Opportunity Create screen and adding Revenue Line items via the subpanel I need to be able to make fields on that view read only or editable based on an on change event.
You should look at doing that via a custom dependency.
See here for more info:
You should look at doing that via a custom dependency.
See here for more info: