resize GlideModalForm

Community Alums
Not applicable

When we populate table through GlideModalForm it comes quite larger size. can someone help to reduce the size of the pop up?

Thanks,

Muthu

 

4 REPLIES 4

Ashwini Suryava
Kilo Guru

Hi Muthu,

In GlideModalForm their is method as setWidth(Number width)

For more information refer this link:

https://docs.servicenow.com/bundle/jakarta-application-development/page/app-store/dev_portal/API_reference/GlideModalClientSideV3/concept/c_GlideModalV3API.html#c_GlideModalClientSideV3API

 

Mark correct/helpful , if it helps you

Regards

Ashwini

Community Alums
Not applicable

Thanks for the replies. But provided solution is not working for GlideModalForm

Rupesh Pulamar1
Kilo Expert

Hi Muthukumar,

 

I came across this in one of my requirement

var gm = new GlideModal();
	gm.setTitle('Related Incidents Raised On Same CI');
	gm.setWidth(750);
	gm.setPreference('table', 'incident_list');
	gm.setPreference('sysparm_view', 'default');
	var ci  = g_form.getControl('cmdb_ci').value;
	//alert(ci);
	var query = 'active=true^cmdb_ci=' + ci;
	var query1 = 'ORDERBYDESCsys_updated_on';
	
	gm.setPreference('sysparm_query', query);
	gm.setPreference('sysparm_query',query1);
	
	gm.render();

 if setWidth() didn't work with you, please drop your code so that I could help.

Thanks & Regards,

Rupesh Pulamarasetty.