Saturday, July 13, 2019

Multi Variable Set - ServiceNow

Multi variable set


Multi variable set is a new variable set type that has been introduced in London version of ServiceNow.   Its a great feature but it still requires few enhancements to blend in with rest of the platform.


















Below are few scenarios that I have encountered while working on it and felt its worth a share how I worked around the limitations.


How to limit number of rows using client script?


Write an onload client script as follows

var field = g_form.getField("multiple_approvers");  // multi variable set name
if (field != null) {
field.max_rows_size = 3;  // number of rows allowed to be entered
 }


You would have the multi variable set limiting entries to only 3 and Add button getting grayed out after the 3 entries.


















Here are the related articles on ServiceNow.


1 comment:

  1. Hi Swetha, do you have any idea about the following scenario, after adding multirow variable set to a record producer and when we go to the actual record and try to add a new row it'll not allow, how to enable it such that it accepts the variable rows.

    ReplyDelete

ITIL V4 foundation exam pattern

What is the purpose of ITIL V4 foundation? The purpose of ITIL V4 foundation is to introduce readers to the management of modern IT-enable...