Save record in glidemodal window without closing it

Marton2
Kilo Expert

Hi guys,

On agile board we have a list of stories. You can open a story by clicking on a number, which if I'm not mistaken is a glide modal window. We have the same UI actions as on a regular story form, but the save and update buttons here both close the window after saving the changes. Requirement is, the save button should not close the window. After testing the UI action it seems that the 'update' function and the 'setRedirectURL' function both close the window. Is there a way to apply the changes without closing the window? Maybe as a workaround instantly reopening it after? I've tried to look up how this glide modal window is generated, but I couldn't find anything other than the html href with the link to the record, maybe it's not available for development?

Any suggestions are welcome.

Thanks.

1 ACCEPTED SOLUTION

Marton2
Kilo Expert

My colleague found a solution for this:

He created a UI action, and then he updates the record through GlideAjax, that way the window doesn't get closed.

One small problem with this is, that there's no way to differentiate UI actions on regular form, and in Glide Modal window, but the functionality is working in both cases.

View solution in original post

6 REPLIES 6

Hi Marton,

I doubt; if that is not what you expect; then have some custom code i.e call custom UI page with OK and Cancel button and add script in that

This would be somewhat time consuming as you will have to write, test it

Please consider marking answer as Correct & 👍Helpful if you find my response worthy based on the impact.

Regards
Ankur

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

Marton2
Kilo Expert

My colleague found a solution for this:

He created a UI action, and then he updates the record through GlideAjax, that way the window doesn't get closed.

One small problem with this is, that there's no way to differentiate UI actions on regular form, and in Glide Modal window, but the functionality is working in both cases.