You need to sign in to do that
Don't have an account?
Rod Atienza
Why is my Custom Button Javascript field not updated
I have a custom button (close case) that does some validations before a user can go into the close layout screen. The button, behaviour is execute javascript, references a rollup summary field on a releated list. The problem is with the contact center using service cloud. So when i open the case, the rollup summary is 1 for example. I will open up the related list record, which opens on another tab in salesforce, and do an update to the record and save. When i go back to the case tab the value of the rollup field i see is updated to 2. However when I hit custom button, the value of the rollup summary is still 1. It only after a refresh of the page that the javascript will see the new value.
How can i get the true value without having the user manually refreshing the screen.
How can i get the true value without having the user manually refreshing the screen.
All Answers
{
alert('Case cannot be closed without adding a Resolution Code to the Case Serial Number (s).' + {!Case.Case_Serial_Resolution_Code__c});
}