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.

Add custom field to dialog popup when click on Propose to major incident button

Deepak Shaerma
Kilo Sage
Kilo Sage

DeepakShaerma_0-1684406501161.png

When a user click on Proposed to Major Incident from form Context menu, then this dialog pop-up and it has two fields, my requirement is to add one more mandatory custom field here. 
Field Name :- Managers Group

Type: Reference(sys_user_group)

 

Help me in this... Please share whole steps end to end ... 

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@Deepak Shaerma 

it is calling a UI page. Did you check the UI page and you can add the reference field in it?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar  

Yes i checked it, but i dont understand anything, can you provide me step to step proceduce, that i follow and fulfill my requirement, Hope to you.. its my urgent requirement

@Deepak Shaerma 

I can guide you but cannot share the complete script.

Name of UI Page: mim_propose

use <g:ui_reference> jelly tag and include a reference field on that UI page

Something like this

<div class="form-group">
		<label class="col-sm-2 control-label" for="mim-propose-business-impact">${gs.getMessage('Managers Group')}</label>
		<div class="col-sm-10">
			<g:ui_reference mandatory="true" name="group" id="group" table="sys_user_group" query="active=true"/>
		</div>
	</div>

 

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

working, but not shown mandatory