Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to limit the rows in the multi-row variable set on the catalog form ?

jatinder1
Tera Expert

Hi All,

How can we limit the rows in the multi-row variable set on the catalog form ?

The number of rows should not exceed 5.

 

Thanks !!

22 REPLIES 22

Hi there,

No the field is available, though not on the form lay-out. So add it to the form lay-out, or edit it through the list.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

I could not find it on the form layout as well

Can you share a screenshot?

For example is the field available in the xml? Or do you see it when you do configure form lay-out?

find_real_file.png

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

abilash_017
Mega Guru

Try this,

 

function onLoad() {
//Type appropriate comment here, and begin script below

var gen_info = g_form.getField("general_information"); //replace with your variable set internal name
if (gen_info != null) {
gen_info.max_rows_size = 5;
}

}

Hi Abhilash,

 

Thanks for help but this I already tried and it is not working for me.