MRVS variable label in description after request submission

Chunho
Tera Contributor

Hi Everyone,

 

I had a requirement which is to allow user to add more than 1 user details using MRVS (image1). After submission, the added MRVS data is show in the description (image2).

 

Is there any method to make the data from row 1 to display as Name 1, Designation 1, etc. while data from row 2 to Name 2, Designation 2, etc. in the description?

 

Thanks.

Chunho_0-1722235508548.pngChunho_1-1722235517279.png

 

6 REPLIES 6

Dnyaneshwaree
Mega Sage

Hello @Chunho ,

Is there any script logic i.e., client script,script include etc. you are using for this functionality? you can try to format the description in script include by using for loop and then try to call that function using client script.

Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru

Amit Verma
Kilo Patron
Kilo Patron

Hi @Chunho 

 

You must be using a Client Script and a Script Include to send data from MRVS to the description field. If possible, could you please share your scripts. You can get the length of the MRVS in your script and based on the loop iteration number, you can append the flag value to your fields.

 

Thanks and Regards

Amit Verma


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

Chunho
Tera Contributor

Hi @Dnyaneshwaree and @Amit Verma,

 

Thank you for your replies, we are using the ServiceNow HRSD module, and by default OOB functionality is converting all the variables into string and then adding it into the description field.

Then you can try it using creating new script include and client script to add given logic.

Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru