Hide Remove all and cross button from multirow variable set

1234567789hrebn
Tera Expert

Hi All,

 

i need to hide remove all and cross buttons from multirow variable set .

 

19 REPLIES 19

I am trying do the same butting below error message

 

var y = this.document.getElementsByClassName("btn btn-sm icon-cross multi-row-delete-row");

 

Error :

Uncaught TypeError: this.document is undefined

This worked for me! I am updating the MRVS values based on selecting an option from another variable on the Catalog Item. I was able to apply this on an onChange Client Script (on Cat Item) and get it to work successfully.

This is the real answer here folks. My instance is Orlando.

Thank you!

asifnoor
Kilo Patron

Hi,

I have written an article on disabling buttons in the MRVS by collating the information from this and other posts. Kindly refer to this.

https://community.servicenow.com/community?id=community_article&sys_id=376e4dfadb7698d0fa192183ca961...

Raj37
Kilo Explorer

I am trying do the same butting below error message and i have tried g_form.getField(). It displaying no such method. Could i doing something?

 

var y = this.document.getElementsByClassName("btn btn-sm icon-cross multi-row-delete-row");

 

Error :

Uncaught TypeError: this.document is undefined

 

Isela Phelps
Tera Guru
Tera Guru

@CoyoteRay Thank you for this. It worked for me. Any chance you know how to make it work for Portal? 



Want to connect? Follow me on LinkedIn