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
BrokenBirdBrokenBird 

Strange Visual Force bug

 

Every time I save in my code, I return to the parent form:

 

 

public PageReference mysave() { update scorecard; PageReference pageRef = new PageReference('/'+scorecard.Project__c); return pageRef; }

 but the Page Editor layer at the bottom stays there... And If I go in the form again, and save, and repeat a few time, it adds more and more layers. This is quite strange, is it my code that causes that?

 

 

Best Answer chosen by Admin (Salesforce Developers) 
BrokenBirdBrokenBird

Adding immediate="false" in my commandButton solved the issue.

 

 

<apex:commandButton value="Save" action="{!mysave}" immediate="false"/>