Reply
Regular Contributor
Staci
Posts: 62
0

need something that pops-up to evaluate status

What I would like to happen is anytime someone either adds a comment to a case or changes the case owner and clicks Save, I want either a new page that pops up or a box that pops up that says "Please evaluate the status and substatus" and the status dropdown and substatus dropdown will be there to change or not change and then another Save button.  Here's the VF page I have written, but I don't know how to tie it to the Save button in SF cases.  Anyone have any ideas?

<apex:page standardController="Case">
<apex:form >
<apex:pageBlock >
<h1>Please evaluate the status and substatus of this case.</h1>

<apex:pageblockSection >
<apex:inputfield value="{! case.status}"/>
<apex:inputField value="{! case.substatus__c}"/>
<apex:commandButton action="{! save}" value="Save"/>

</apex:pageblockSection>

</apex:pageBlock>

</apex:form>

</apex:page>
Moderator
bob_buzzard
Posts: 6,426
0

Re: need something that pops-up to evaluate status

There's no supported way to do this.  The only way that I know of is to put some javascript into a sidebar component that adds some onclick behaviour to the save button. This is a fragile solution though, so I wouldn't recommend it in production.  

 

The preferred (supported) way to achieve this would be to replace the edit page with your own visualforce page and then you can introduce whatever behaviour you like, though at the pricing of losing the standard functionality.

--
Certified Salesforce Technical Architect, Developer, Advanced Developer, Administrator, Advanced Administrator, Consultant, Sales Cloud Consultant,Service Cloud Consultant
Force.com MVP | The Bob Buzzard Blog | Linked In | Twitter

I don't respond to private messages/emails asking for help.


Take the Bob Buzzard Sobject Fields quiz.