Repeating Variable

brian_
Tera Guru

I'd like to set up a variable that the user can add more and more of as necessary. If the user needs to only list 2 affected names, then that is fine. But if they need to list 18, the I'd like them to be able to click a button and add another field. Click the button, add a field. So on and so forth.

Any way to do this without creating a finite number of variable fields?

Example: http://infotuts.com/dynamically-add-input-feilds/

Click the Add button several times. That way you get several fields to fill out.

6 REPLIES 6

Michael Fry1
Kilo Patron

No chance you can use a List Collector? wiki: http://wiki.servicenow.com/index.php?title=Variable_Types#gsc.tab=0


I have used list collectors, and they're great for known information, however for unknown variables, not so much.



The specific use case at hand is: list all of the names & email addresses for people outside of the company you need added to this item. It could be 2, it could be 20. And they're all unknown as they're outside of the company.


bernyalvarado
Mega Sage

Hi Brian, you may want to take a look to the Catalog Table Variable



Thanks,


Berny


bernyalvarado
Mega Sage

Here goes the link to the catalog table variable: https://share.servicenow.com/app.do#/detailV2/9a1c883b2b100a00bddaff70f8da153f/overview



I hope this helpful!



Thanks,


Berny