You need to sign in to do that
Don't have an account?
debra
Any tricks to change the label on a custom button based on data changes on the record?
Just starting out to develop a custom sync feature to replace the standard opportunity<->Quote sync. For the UI changes we are thinking to implement a custom button on quote object but would want the label to change based on whether or not the quote is already sycning or not - very similar to how the standard sync button label changes.
Any suggestions on how we might implement this ?
I am farily new to Apex, Visualforce coding.
Any suggestions on how we might implement this ?
I am farily new to Apex, Visualforce coding.
If an opportunity and a quote are synced, the opportunity identifies the synced quote in two places:
The Synced Quote field on the Opportunity detail page.
The Syncing checkbox in the Quotes related list.
If you stop the sync between a quote and an opportunity, the link is broken and the records are no longer automatically updated with each other's changes.
If this answer will help you out ,please mark it as best ans to help other :)
Thanks
Its a very easy to implement. with overriding the View with Page (having Detail Tag and some java script).
Thanks
You might have already found the answer to update it..
Assume the custom button name is issyncingcustom, include the below J$ into your Quote page.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script>
$( document ).ready(function() {
var synButtonName='Start Sync';
if('{!Quote.IsSyncing}'=='true')
{ synButtonName='Stop Sync';
}
$('[name="issyncingcustom"]').attr('value', synButtonName); });
}
</script>