Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to open popup from incident form

cuchi
Mega Guru

Hi All,

 

i trust this email finds you well.

My goal is to open the incident form and click on a button called 'Add Time Worked'. Once the button is clicked, a popup with fields will be displayed and after filling all fields, it will create a record in the 'task_time_worked' table for that specific incident. Finally it will remain in the incident record.

 

So far i created a button and creates a record in the time worked table. Also, tried redirecting to the time worked form creating a new record, but user field is empty (should have my name by default).

 

Would you help me on how to create the ui page containing the following fields and how i pass those values to create the record?

 

- comment

- duration

- action date

- incall (true/false)

- outcall (true/false)

- Type (drop-down)

 

regards,

Max

1 REPLY 1

Gurpreet07
Mega Sage

Hi Cuchi,

 

Create a new Client UI Action and Use GlideModal in the script function to show 'task_time_worked' form.

https://docs.servicenow.com/bundle/vancouver-api-reference/page/app-store/dev_portal/API_reference/G...