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

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=""></script> <script> 
$( document ).ready(function() { 

var synButtonName='Start Sync'; 

{ synButtonName='Stop Sync'; 

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