+ Start a Discussion

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?


script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> 
$( document ).ready(function() { 

var synButtonName='Start Sync'; 

{ synButtonName='Stop Sync'; 

$('[name="Validar Propuesta"]').attr('value', synButtonName); });