The CreatorCon Call for Content is officially open! Get started here.

How to restrict or disable the add button in Multi Row Variable Set after the 5th Row?

RISHAV SANSON
Tera Contributor

I have to restrict the number of rows to 5 but i am not be able to restrict or disable the add button. Could you please share some thoughts or suggestions ? 

33 REPLIES 33

Nisar Khan1
Mega Sage

What is "tableVariableCache"? Can you please add comments to your code so that it give the readers better understanding. thanks.

 

When i am using the script, "tableVariableCache" is giving me undefined and "tableVariable" gives me null all the times.

Hello Nisar Khan,

Kindly refer to this article, where i have explained how to disable add button after X number of rows.

https://community.servicenow.com/community?id=community_article&sys_id=86971c8bdb4108106064eeb5ca961...

Mark the comment as helpful if it helps.

is it going to work in the backend? because I see that your solution works for SP which is good as well.

It works on SP.

okay then that means it doesn't work on the backend instance catalog. I needed solution for backend