I want to show view mode whenever user wants to op...
# suitescript
a
I want to show view mode whenever user wants to open a record in edit mode What's the best way to do that?
n
Setup a userevent to be triggered on Edit mode. Redirect the record to view mode using redirect.toRecord(options) method of N/redirect module
a
Thanks
So we have to use redirect
There is no other way
n
Other is to throw an error.
a
Thanks do we have a channel for UI questions?
n
#C29HMKBGC
#C298P0BCK
a
Thanks
n
No problem.
a
Although I'm not sure if it's ui or not
You know when we add a script parameter at company level, in will be added to customer preference general tab, how can we change that tab or rename it?
n
I believe you cannot.
j
or lock the record via WF
👍 1
that will pop them back to view mode