The CreatorCon Call for Content is officially open! Get started here.

Passing value from Service Portal model to Catalog Item form

rajneeshbaranwa
Giga Guru

We are showing a widget containing list of Request Type (based on the selection made by users in the catalog item)  in Modal window . Once user selects one of these request types, catalog task needs to be assigned to group mapped to the request type.

While we are able to get group name in the widget, How do I pass this value to catalog item so that a catalog variable named Support Group can be populated with the group value and using this variable we can update Catalog Task's assignment group.

1 ACCEPTED SOLUTION

rajneeshbaranwa
Giga Guru

I was able to achieve this using shared parameter of spmodal passed in spmodal.open funciton

 

Details are here

 

https://github.com/service-portal/x-archive/blob/master/documentation/spModal.md

 

 

View solution in original post

5 REPLIES 5

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

Bit confused, where the modal is and where you want to do this.

Can you clarify it properly.


Thanks,
Ashutosh

 

We have a form , which opens up a widget in modal window(using spmodal.open)

User selects a request type in this widget, We need to pass value of selected request type from widget/modal to ServiceNow Form so that tickets can be assigned to correct group.

 

 

Hi,


All this happens on Service Portal before submitting a request right?

From Where this spmodal.open is called? Catalog client script?

 

Thanks,
Ashutosh

Yes, You are right.

 

Sorry, I am so bad with explaining things.