function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anandakumar85anandakumar85 

S-Control creating problem in normal browser function

Hi All
 
I have over-ridden the Close Case button with an S-control such that only when some condition is satisfied the Case can be closed.( other wise it will throw an alert and will return back to the View page). that is fine.
 
But Now, what happens is " If I close the Case.....and If I then want to go back to the Close case page...by clicking the BACK button in the browser it is not going to the Close case page...Instead it is in the same View page of the Case.....
 
Also One more point is ....If I click the BACK button twice...It is working fine...What might be the problem?
 
 
Thanks in Advance
Ananda
 
 
mojoVanessamojoVanessa
I am having the same issue in my S-Control that overrides the Opportunity View button, using the code

window.parent.location.href="{!URLFOR($Action.Opportunity.View,Opportunity.Id,[retURL=URLFOR($Action.Opportunity.View,Opportunity.Id)],true)}";

Does anyone have an idea how to avoid this?

Thanks.
mojoVanessamojoVanessa
FYI - Salesforce support informed me that "the double click is a normal behavior in this situation.  This is because there are two functions fired. "