GlideDialogForm vs GlideDialogWindow window sizing

nmartinez
Kilo Contributor

I am using GlideDialogForm to pull up another table within the incident form and I need to change the size of the window.

In GlideDialogWindow I can set the size with this code: dialog.setSize(width, height);

However GlideDialogForm seems to completely ignore this setting.

Any ideas?

7 REPLIES 7

john_andersen
Tera Guru

I think I have seen someone use setDialogSize(w, h) to do that. I am not an expert in that area, but it is worth a shot.


john_andersen
Tera Guru

I think I have seen someone use setDialogSize(w, h) to do that. I am not an expert in that area, but it is worth a shot.


cosminux
Giga Contributor

setSize(w, h) seems to be working well for me.
Does anyone know how to increase the size of the input field within the Dialog box or transform it into a textarea?

Thanks,
Cosmin
U of MN


elliott6
ServiceNow Employee
ServiceNow Employee

Hey Nick!



In GlideDialogForm, use the setDialogSize(w,h) method to set the width and the height. GlideDialogWindow's setSize method will work on the modal container's width, but the width of the form will not be set properly.