Hi all, Is there an easy way to disable all fields...
# general
b
Hi all, Is there an easy way to disable all fields on a Vendor Bill except for fields of my choosing, like the class and department? Or is there a way to lock the record in netsuite, but allow them to edit those few fields? I have went down the path of scripting, WF, and form customization and all appear to have shortfalls.
r
My first thought was workflow but it sounds like you already tried it. What limitation did you run into?
b
You cannot diable all fields using the WF, also would be a ton of Set Field Value actions to add, also if a field ever gets added in the future, you need to update the WF to disable that field too
z
can you disable all fields for that user's role except for whatever you want to allow them to edit?
r
You're right; you'd probably need to use a script for that as well. I can't think of another way around it. One option could be to lock the vendor bill and create a custom record type that sits onto of the bill and use suitescript to modify the underlying record. Not ideal but throwing ideas out.
👀 1
a
Create a custom record with internalids of the fields that you want to disable and then fetch the IDs through Script and disable them. This way if you want to disable any new field in future, you can just add it in the custom record .
s
You can just create a form and set all the fields to inline or disabled and restrict that user or role to that form
r
Its the line level information tho that I don't think the form can touch
🙌 1
s
Oh yeah line level can’t. You can hide them but I’m assuming they want the user to be able to see the fields still.
b
@Ryan appreciate the ideas - I may go down that path to see what I can do!!