Hide Submit Button On Change Request

Not applicable

The Create New change request form has both the Submit and Save buttons visible. We would like to hide the Submit button on change request form only but leave it visible on other forms like Incident. I see Save and Submit UI Actions that are Global. Is there a way to disable the button on change request only?

4 REPLIES 4

Not applicable

The following should do the trick:
http://wiki.service-now.com/index.php?title=UI_Actions

Towards the bottom:
Overriding or removing a UI Action for an extended table

If a UI Action is defined on the task table, it will apply to all tasks, including incidents, changes, problems, etc. Same with a "global" UI Action. It is possible to override such a UI Action for a specific table, say the incident table.

Example: To override a higher-level task UI Action and have different behavior for just the incident table, create a UI Action on the incident table with the same "Action name". If the higher-level UI Action does not have an Action name, simply give your new UI Action the same Name.

To have different behavior for the incident UI Action, simply write a different script. To completely remove the UI Action from just the incident table, and have it not show up at all simply put a condition on your UI action of "current.sys_class_name == 'incident'".


Not applicable

Thanks for the information. Exactly what I needed.


goyank
Kilo Contributor

hi


The following should do the trick:


https://docs.servicenow.com/bundle/jakarta-servicenow-platform/page/administer/list-administration/c...



Towards the bottom:


Overriding or removing a UI Action for an extended table



If a UI Action is defined on the task table, it will apply to all tasks, including incidents, changes, problems, etc. Same with a "global" UI Action. It is possible to override such a UI Action for a specific table, say the incident table.



Example: To override a higher-level task UI Action and have different behavior for just the incident table, create a UI Action on the incident table with the same "Action name". If the higher-level UI Action does not have an Action name, simply give your new UI Action the same Name.



To have different behavior for the incident UI Action, simply write a different script. To completely remove the UI Action from just the incident table, and have it not show up at all simply put a condition on your UI action of "current.sys_class_name == 'incident'





Could you please specify what needs to be added in the script if we need to hide the submit button from the Incident form only..



Thanks,


Ankita


ServiceNow10sun
Giga Guru

I have got similar scenario 

Requirement - Save button should be visible even while creating new record and Submit button should be hidden in new record only for change request. 

I have created a new UI action for Change request table with condition !(current.isNewRecord() && !current.canCreate()) && current.canWrite()&&current.sys_class_name == 'change_request'

and it worked.

@siddharth26