Solved

Creating pop up windows to fill in additional details

Posted on 2008-10-21
8
480 Views
Last Modified: 2012-05-05
Hello,
I have created a field for escalation of cases, that uses a picklist 'Level 1, Level 2, Level 3'.

I would like a pop up window to appear to allow the user to update time he's currently spent on the job before escalating it to level 2.
I would also just like to know how to create a pop up warning as we have began to use CRM for our orders and would like to notify admin to check certain values are correct before saving the order.

Many Thanks
0
Comment
Question by:Intechnical
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 2
8 Comments
 
LVL 4

Expert Comment

by:gregowens
ID: 22765561
MS CRM can handled "time spent" on a case, without requiring custom developement. If your workers create CRM activities which are "Related" to a case, the time spent on each activity is summed when the case is closed. This appears in the "Total Time" field on the "Resolve Case" dialog box (Service > Cases > select and open Case > Actions > Resolve Case).
I'll post some JavaScript shortly re: showing a warning...
0
 
LVL 4

Expert Comment

by:gregowens
ID: 22765589
The following JavaScript code will prompt the user with a custom message and abort the save event, unless the OK button was clicked:
var isChecked = confirm("Have you double-checked the price list and freight amount?\n\nClick OK for yes or CANCEL to amend.")
if (!isChecked){
	//Abort the original Save
	event.returnValue=false;
	return false;
}

Open in new window

0
 
LVL 4

Expert Comment

by:gregowens
ID: 22765594
Obviously the code needs to be added to the form's OnSave event... ;-)
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 1

Author Comment

by:Intechnical
ID: 22765690
Thanks Greg,
That looking good, however is it possible to have the On Save event only active if a field equals a certain value, so for example if escalation equals level 2 - and when gone to save, they get a message to make sure that they have added a task to the case for the time they have spent?
Many Thanks for your quick response.
0
 
LVL 4

Accepted Solution

by:
gregowens earned 250 total points
ID: 22765754
Absolutely - though by looking to check other entities (i.e. tasks/activities) the solution becomes more complicated...
To only fire the warning if escalation level = level 2 then your code would look something like the code below.
For look-up to associated activity you need to be more specifc about what constitutes "adding a task to the case" - for example, simply checking to see if a task exists for this case does NOT guarantee that time has been spent on it by your support person. More specifically, when the case is escalated to level 3, what criteria should be used to ascertain that the task created for level 2 should be ignored and that a new task is now expected for the level 3 escalation (if you follow...).
It might be better to consider using workflow rules to help manage the esalation process - is there an underlying rule for escalation?

var fieldToCheck = crmForm.all.new_escalationlevel
if(fieldToCheck.DataValue!=fieldToCheck.defaultValue) // if field has changed
{
	var isChecked = confirm("Have you created a task to allocate your time?\n\nClick OK for yes or CANCEL to amend.")
	if (!isChecked){
		//Abort the original Save
		event.returnValue=false;
		return false;
	}
}

Open in new window

0
 
LVL 4

Expert Comment

by:gregowens
ID: 22765760
This place needs an Edit button on earlier posts...!
Note that I missed a semi-colon off line 1 of the previous code.
0
 
LVL 1

Author Comment

by:Intechnical
ID: 22765870
Is this all in Java Script?
0
 
LVL 4

Expert Comment

by:gregowens
ID: 22765894
All the code that I've posted is JavaScript, yes.
Workflow uses it's own UI from within CRM and is point-and-click. Accessed via Settings > Workflow
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On Sep 22nd 2014 Microsoft released Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 and back in July Update Rollup 3 was released.  So we now have:   Update Rollup 1Update Rollup 2Update Rollup 3Service Pack 1Update Rollup 1 for S…
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part I
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question