Is there a way to loop through variables/questions in a catalog item?

allentschumper1
Tera Contributor

Hello -

I am curious if this is even possible.  We in development are being asked to enhance a catalog item request and frankly, have never done this before.

How the request works is that it asks 3 simple questions...who the buyer is (sort key), who the seller is (SCAC/carrier code) and what is the shippers ID number.  It's to set up a TPR and/or relationship between buyers and sellers.  Their new ask is to whether or not you wish to have MULTIPLE relationships set up.  Therefore, we added a question of "Does another TPR need to be added?"  And this question is hidden until the other 3 questions are answered.  The problem is, if they answer yes, we need to have the exact same 3 questions asked again.  And possibly again and again if they want to keep adding buyers and sellers to have a TPR created for them.

Is it possible to keep asking these same questions over and over?  AND, we'd need them hidden until the "does another TPR need to be added?" is answered yes.  

I'll be interested to hear suggestions!

 

Thank you. 

2 REPLIES 2

SanjivMeher
Kilo Patron
Kilo Patron

I would use a multi row variable set for this use case. Following blog should help.

https://community.servicenow.com/community?id=community_blog&sys_id=7cc66514db882380e0e80b55ca961965


Please mark this response as correct or helpful if it assisted you with your question.

allentschumper1
Tera Contributor

Excellent, thank you.  I'll give this a look!