g_modal.showFrame in Workspace

Maddalena Mores
Kilo Expert

Hi all, 

I'm working on Agent Workspace and I have a client script which open a UI Page with g_modal.showFrame() method.
My issue is that in this UI Page (in client side) I set value of a field using g_form.setValue("field_name", value), but on Agent Workspace it doesn't work because I get the error "g_form is not defined".

So, there is a way to access g_form to set field value based on UI Page content? I have to do this client side to ensure the process works properly.

 

Thank you.

7 REPLIES 7

keugenio
Tera Contributor

I'm doing something similar with the modal and UI page. I thought maybe passing back the value from the UI page to the modal then back to the workspace client script so you can update using g_form.  I'm still new to UI Pages so I don't know if this is possible.  Did you come up with a solution since your last post?

Sanika1
Kilo Contributor

Did you achieve to set values from UI page in Agent Workspace?

were you able to figure this out?