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

Service Portal passing Information to g_form

Fabian10
Tera Guru

Hi There

I'm creating a Widget, which I embed in a Catalog Item/Request Item. My Widget is dynamicly creating a form and when I Submit the Request Item, I would like to use the Information from that form as a variable in the Requested Item to use this informations in a Workflow.

My idea was to have a Single Line-Text-Field, which is hidden. When the form in my widget is changing, the value of this textfield should change and contain all Information from my form as JSON.

How can I access this field from the Client Controller Script? When I try to use g_form in the Client Controller Script, I get the error "Uncaught ReferenceError: g_form is not defined". I also tried to just write in this field with jQuery, but when the Request Item is submited, this variable is emtpy.

Can anyone help me with this issue or is there an other possible solution?

Best regards,

Fabian

1 ACCEPTED SOLUTION

Fabian10
Tera Guru
1 REPLY 1

Fabian10
Tera Guru

I just found the solution by myself:


Interact with service portal widget in catalog item