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 setSize for GlideModalForm?

Yuva
Giga Contributor

I have tried OOB setSize method but it didn't work. Could you please share your inputs or suggestions on how to set Size for GlideModalForm?

Thanks,

Yuva

7 REPLIES 7

rahulpandey
Kilo Sage

Hi,


here you go


var modalDialog = new GlideModal("name of the UI page");


modalDialog.setSize(700, 400);.


rahulpandey
Kilo Sage

For GlideDialogForm, use setDialogSize(w,h)


Yuva
Giga Contributor

Hi Rahul,



The   requirement is to set size for GlideModalForm.



Thanks,


Yuva


Hi, Then you should use setDialogSize(w,h). Let me know if it works