Hello, I created a client script which to delete a...
# suitescript
i
Hello, I created a client script which to delete a selected item in a serialized item type field But when I try to save my form I get this error: Error: JS_EXCEPTION SSS_INVALID_UI_OBJECT_TYPE That operation is not supported for this type of UI object: null. It is only supported for type: null What is the reason please
b
Field.removeSelectOption(options) lists the limitations of the method
i
With this documentation I understand that this function is not appropriate for this field. Thanks @battk The solution would be to create the field with a suitelet?
b
there isnt much point in general
removing a select option isnt permanent
the select option will be available the next time you load the record
i
Even using a server script is not possible?
b
honestly, it has to be available
you are trying to make the current selection of the field invalid
i
I understand. Thanks
Please can you then suggest me a solution to prevent a user to select an option that have already been selected?