Adding a field dynamically

shubh_am
Tera Contributor

Hi all

I had created a record producer with some String field. My requirement is that I wanted to add a "+" and "-" button to one of the field so that a user can input multiple value according to the requirement. Thanks in advance for the help.

4 REPLIES 4

AnveshKumar M
Tera Sage
Tera Sage

HI @shubh_am ,

I think multi row variable set best suits your need.

 

 

Thanks,
Anvesh

Thanks for your valuable answer. I tried it but it does not meet my requirement perfectly.

Karan Chhabra6
Mega Sage
Mega Sage

Hi @shubh_am ,

 

You can create a multi row variable set and add it to your record producer

KaranChhabra6_0-1687520256493.png

KaranChhabra6_1-1687520480863.png

Add it to your record producer:

KaranChhabra6_2-1687520549517.png

Output:

KaranChhabra6_3-1687520873571.png

 

Thanks!

 

Tony Chatfield1
Kilo Patron

Hi, based on your description I think you will need to look at dynamically adding rows to a MRVS,
and this article from the SNC Witch Doctor covers the basic concept.
Episode 11 - Add rows to multi-row variable set with client script in ServiceNow - YouTube