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
AAIAAI 

custom button with same feature than Start Sync

Hi all,

I created a custom label named "Proposal validation" instead of "Star Sync" button. I used the following code and got the error: Unexpected identifier.
Could anyone check my code and give any advice, please?

{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")} 

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="Validar Propuesta"]').attr('value', synButtonName); }); 

</script>