Anyone know of an easy way to remove the Post button for Work notes?

DrewW
Mega Sage
Mega Sage

Anyone know of an easy way to remove the Post button for Work notes?   We are having issues with people entering SSN's on occasion into the work notes.   I built an onSubmit script that just removes them but what I found is that if the use clicks the "Post" button that the system does not run any of the onSubmit scripts.   I'm hoping I will not have to write a client script to find and remove it, that will just cause all kinds of issues I'm sure.

Thoughts anyone?

10 REPLIES 10

mooreka777
Giga Contributor

Hello Drew,



Can you click the form properties -> UI Actions


- List action, false or


- Active, false?



Thanks,


Kelly


The Post button for the work notes/comments fields is not a normal UI Action.


shloke04
Kilo Patron

Hi,



You can write a UI Policy on the Incident Table to hide the Post button as shown below:



find_real_file.png



The above script will always hide the Post button on the Incident form, if you want you can specify the condition also in the UI Policy i.e. when you want to hide the Button say for example You want to hide it when the State is closed, so you can specify the same as shown below:



find_real_file.png



Hope this helps.Mark the answer as correct/helpful based on impact.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

I'm trying to avoid a client script which is essentially what you created.



So what I'm learning is there is no system property to find and a client script is basically my only option.