Comments on: GlideDialogWindow: QuickForms https://servicenowguru.com/system-ui/glidedialogwindow-quickforms/ ServiceNow Consulting Scripting Administration Development Tue, 28 May 2024 20:56:19 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: sandeep https://servicenowguru.com/system-ui/glidedialogwindow-quickforms/#comment-7514 Fri, 29 Sep 2017 14:14:50 +0000 https://servicenowguru.wpengine.com/?p=2043#comment-7514 HI Mark,

Thanks for the above solutions.
My business case is different.

We have to assign the incidents to a team, which has to update worknotes for each and every incident every day.
Usually, they miss to update the worknotes , which are the source to navigate the statuses of the tickets assigned until they get closed.

Can you provide an idea how can we get a pop up notification, which are customized with time.
like Case1) 24hrs from the last Worknotes updated time.
Case2) Time at which a pop up should come, (if worknotes not updated)

Regards
Sandeep N

]]>
By: Mila Morales https://servicenowguru.com/system-ui/glidedialogwindow-quickforms/#comment-7513 Mon, 11 Sep 2017 17:37:55 +0000 https://servicenowguru.wpengine.com/?p=2043#comment-7513 In reply to sm.

What version of instance are you using? If you are using the dialog for attachment only, I think he can use the UI action attachment which already OOB. Or if GlideDialogWindow has fields you can use “Focus” (javscript) on those fields.

]]>
By: Arnab Karak https://servicenowguru.com/system-ui/glidedialogwindow-quickforms/#comment-7512 Tue, 05 Sep 2017 19:48:17 +0000 https://servicenowguru.wpengine.com/?p=2043#comment-7512 In reply to Regina Bautista.

Have you got any solution with your requirement.

]]>
By: Arnab Karak https://servicenowguru.com/system-ui/glidedialogwindow-quickforms/#comment-7511 Tue, 05 Sep 2017 19:47:43 +0000 https://servicenowguru.wpengine.com/?p=2043#comment-7511 Hey Mark,

The above information was quite helpful.

I was wandering can we set any field to mandatory in the view when someone clicks on the List Choice UI Actions ?

]]>
By: sm https://servicenowguru.com/system-ui/glidedialogwindow-quickforms/#comment-7510 Thu, 17 Aug 2017 10:57:20 +0000 https://servicenowguru.wpengine.com/?p=2043#comment-7510 I tried to use the GlideDialogWindow for attachment popup, but instead of opening the window next to the event button, it opened it on the top of the page, so the user see blank page and can not see the popup window unless he scroll back to the top of the page.
I really need help with it, do you have any solution for me?

]]>
By: Regina Bautista https://servicenowguru.com/system-ui/glidedialogwindow-quickforms/#comment-7509 Wed, 14 Jun 2017 12:48:17 +0000 https://servicenowguru.wpengine.com/?p=2043#comment-7509 Hi Mark, great article thanks! I am currently using showQuickForm in my UI Action (list choice) and it’s working great. However we have a requirement to make fields mandatory on the dialog box not on the main form. How do I accomplish this considering the fields I am using in the dialog box is basically same fields that are available on the parent form? Please help. Thanks

]]>
By: Mark Stanger https://servicenowguru.com/system-ui/glidedialogwindow-quickforms/#comment-7508 Tue, 07 Mar 2017 22:31:39 +0000 https://servicenowguru.wpengine.com/?p=2043#comment-7508 In reply to Reed.

Exactly, that’s why I’m saying you’ve got to move that part to a different script location entirely. If it’s where you’ve put it you’ll always have it running too soon. I’m not sure what the rest of the setup looks like so it’s hard for me to be more specific about where to locate it.

]]>
By: Reed https://servicenowguru.com/system-ui/glidedialogwindow-quickforms/#comment-7507 Tue, 07 Mar 2017 21:53:37 +0000 https://servicenowguru.wpengine.com/?p=2043#comment-7507 Hi Mark,

That part is working – in fact, it runs before the pop-up even comes up. I need a way to have it wait until the pop-up is submitted. That “checkForRelatedRecs” is just a function (that I didn’t include in the code snip-it) that makes a GlideAjax call to a script include via getXMLWait() to check to make sure they successfully created the related record. I can’t do that onSubmit because it was just created. If there is a way that I could have the pop-up return a value to my client script telling me sucsess/failure, then I wouldn’t need to call that function. I tried doing what MB describes here: https://community.servicenow.com/people/MB/blog/2011/03/23/2476, but an empty gray pop-up flashes very briefly and goes away. So I couldn’t get that to work (and besides, I need to pass the incident sys_id to the pop-up). Any other ideas?

Thanks for reading.

]]>
By: Mark Stanger https://servicenowguru.com/system-ui/glidedialogwindow-quickforms/#comment-7506 Mon, 06 Mar 2017 23:06:04 +0000 https://servicenowguru.wpengine.com/?p=2043#comment-7506 In reply to Reed.

The ‘checkForRelatedRecs’ check needs to be placed somewhere that it can be evaluated on Submit. You’ll probably need to move this back to the base table in an ‘onSubmit’ script or something.

]]>
By: Reed https://servicenowguru.com/system-ui/glidedialogwindow-quickforms/#comment-7505 Mon, 06 Mar 2017 20:24:47 +0000 https://servicenowguru.wpengine.com/?p=2043#comment-7505 I’m doing something similar, except I’m not doing it from a UI Action. Under certain circumstances my customer wants it to become mandatory that at least one record be present in one of the related lists before an incident can be resolved. I wrote an onSubmit Client Script to check for the conditions and the presence of the related record. When the record is required but isn’t present, I want to allow them to create it via a default view pop-up form instead of making them create it by manually moving to the related record’s form thereby losing any updates they entered on the incident form. The problem I’m having is that the Client Script doesn’t wait until the pop-up form is submitted – and just goes ahead with the next statement after “render” even before the pop-up is displayed. So I can’t verify the new record got created. I can probably make this work by aborting the incident update and making the user re-submit it after the related record is created, but it would be cleaner if I could make the pop-up form “modal” and wait until the pop-up is closed to continue the Client Script processing.

Below is the code I’m using. Any assistance would be appreciated.

	var sysID = g_form.getUniqueValue();

	if ([the conditions are present]) {

		if(!confirm('[Message to user that related record is required]')) return false;

		var dialog = new GlideDialogForm('Create Record', 'u_related_table');
		dialog.setSysID(-1);
		dialog.addParm('sysparm_view', null);
		dialog.addParm('sysparm_form_only', 'true');

		dialog.setLoadCallback(function(iframeDoc) {
		var dialogFrame = 'defaultView' in iframeDoc ? iframeDoc.defaultView : iframeDoc.parentWindow;
		dialogFrame.g_form.setValue('u_incident', sysID);
		dialogFrame = null; });
		dialog.render();
	[I want it to wait here until the rendered pop-up is submitted or closed]
		var NoRelatedRecs = checkForRelatedRecs(sysID);
		if(NoRelatedRecs) return false;
	}
]]>