Hide "Submit" button for a custom table in Scoped Application.

Sanket Shinde2
Mega Expert

Hello All,

I want to hide the "Submit" button from a form in scoped application.

I have already tried the below code, which works in any other table created in a global scope, but since $$ is not supported in a scoped application, the same script doesn't work :-

var items = $$('BUTTON').each(function(item) {
if (item.innerHTML == 'Submit') {
item.hide();
}
});

Please let me know if someone succeeded in hiding the submit button for a custom table in a scoped application.

Thanks in advance.

Regards,

Sanket Shinde

 

1 ACCEPTED SOLUTION

Pratyusha
ServiceNow Employee
ServiceNow Employee

Hello Sanket,

You can do this by defining a new UI action 'Submit' on that specific table in your scoped app with the same UI action name 'sysverb_insert' but not enabling it either as form button or form link, etc.

Please refer to the screenshot below to see how this UI action should look like:

find_real_file.png 

Thanks,

Pratyusha

View solution in original post

4 REPLIES 4

Alok Das
Tera Guru

Hi Sanket,

Please refer to the below thread with the similar issue:

https://community.servicenow.com/community?id=community_question&sys_id=8fd30fa5dbd8dbc01dcaf3231f96...

Kindly mark my answer as Correct and helpful based on the impact.

Regards,

Alok

Thank you, Alok for the response.

 

Regards,

Sanket Shinde

Pratyusha
ServiceNow Employee
ServiceNow Employee

Hello Sanket,

You can do this by defining a new UI action 'Submit' on that specific table in your scoped app with the same UI action name 'sysverb_insert' but not enabling it either as form button or form link, etc.

Please refer to the screenshot below to see how this UI action should look like:

find_real_file.png 

Thanks,

Pratyusha

Thank you, Pratyusha.

It was a quick and simple solution.

 

Regards,

Sanket Shinde