I am trying to disable the ITEM field on the ITEM ...
# suiteflow
s
I am trying to disable the ITEM field on the ITEM sublist on a sales order form. I seem to be able to make any field except that one inline with a “Before user edit” event …. while other fields get set to inline properly, when I try to set the item field there is no reaction at all. Any ideas?
r
What is the goal? Items are mandatory that is the crux of the sublist.
k
If you set the header title to blank, does it hide it?
But to back up rebecca's question here - this seems like a very odd request.
s
Good point…. this would be on edit only to prevent the user from CHANGING the item. they can change QTY or Price but NOT the item itself.
r
I’m pretty sure that will require a script.
s
I am thinking so as well…. but it is odd that it works on the other fields.
k
There are other fields that don't work with suiteflow (to change display type) - amount being one of them.
s
Yup, there as I work through this it appears that are some…. the first few I tried worked but no all of them. Script it is
following up on this, I have since found that even in script I could not disable the item field. I can hide it with a UE script which was a surprise to me I expected to do this in a client script but that did not work at all. Final solution that I don’t love. I created a Non stored value field called “Item Name” this is an inline display type field, Default value of the item field. Before load user event script hides the new field unless the script mode is edit then it hides the item field effectively making it appear be the item field Disabled. It feels like a hack but it does seem to work.
277 Views