Can we hide the default submit button?

Sirisha Navudu2
Giga Expert

Hi

can we hide the default submit button, as we have created custom buttons. could you please provide any solution.

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Hey,

Procedure:

1. Go to the global UI Action in the sys_ui_action table.

2. Change the table from Global to the table name that you want the UI Action to be hidden.

3. In the condition field, add a script that will never be true (For example ! current.canCreate() )

4. Right-click on the header and click ‘Insert and Stay’.

This will create another UI Action with all the same properties as the global one but overrides the global UI Action and hides it as well.

Make sure, the new UI action has the exact same action name and properties as the other. (Hence I advise the ‘Insert and Stay’ so that you do not have to change anything else other than the condition and the table. 

 

You can follow below article:

How to hide a global UI Action/ button in Scoped applications

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar

View solution in original post

5 REPLIES 5

Aman Kumar S
Kilo Patron

Hey,

Procedure:

1. Go to the global UI Action in the sys_ui_action table.

2. Change the table from Global to the table name that you want the UI Action to be hidden.

3. In the condition field, add a script that will never be true (For example ! current.canCreate() )

4. Right-click on the header and click ‘Insert and Stay’.

This will create another UI Action with all the same properties as the global one but overrides the global UI Action and hides it as well.

Make sure, the new UI action has the exact same action name and properties as the other. (Hence I advise the ‘Insert and Stay’ so that you do not have to change anything else other than the condition and the table. 

 

You can follow below article:

How to hide a global UI Action/ button in Scoped applications

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar

Hi Aman, i work on similar case but for the scoped application so when going to System Definition > UI Action i am not able to locate that UI Action. Do you know if this can be done for scoped app?

 

Sagar Pagar
Tera Patron

Hi,

Check the Submit UI action on Academy Request table. make it as in-active (active as false).

 

Thanks,
Sagar Pagar

The world works with ServiceNow

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Any reason why you created custom button when this can be done with OOB buttons?

Was that a client requirement?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader