How to show UI Action button only after problem creation

vamseeinala
Kilo Contributor

Hello,

Is there a way to put a condition for UI action to make the UI action button visible only after the problem is submitted. I have tried to use the state but state is still set to "Open" even if the problem is not yet submitted.

Thanks

Vamsee

1 ACCEPTED SOLUTION

apurvasharma
Kilo Guru

Hi,



There is a checkbox on Ui action


find_real_file.png


uncheck this, then UI action will not be shown on new record.


find_real_file.png


check this, then the UI action will be shown after record is inserted/means on update.



Thanks,


Apurva


View solution in original post

3 REPLIES 3

sunilsafare
Mega Guru

Hi Vamsee,



Check show update box and uncheck show insert box in UI action for problem table. But deactivate global ui actions like submit on problem table by adding scripts like current.sys_class_name != 'problem'



Thanks,


Sunil Safare


apurvasharma
Kilo Guru

Hi,



There is a checkbox on Ui action


find_real_file.png


uncheck this, then UI action will not be shown on new record.


find_real_file.png


check this, then the UI action will be shown after record is inserted/means on update.



Thanks,


Apurva


Geoffrey2
ServiceNow Employee
ServiceNow Employee

As Sunil said, unchecking the Show Insert checkbox is the easiest solution.


To do it in the condition you can use !current.isNewRecord()