You need to sign in to do that
Don't have an account?
AAI
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>
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>