Chris Simon
06/09/2023, 3:18 PMChris Simon
06/09/2023, 3:27 PMNathan L
06/09/2023, 3:32 PMNathan L
06/09/2023, 3:35 PMNathan L
06/09/2023, 3:36 PMfunction customButtonFunction() {
var button = document.getElementById('custpage_custom_button');
button.disabled = true; // Disable the button to prevent double-clicking
// button action stuff
// ...
// once button stuff is done re-enable it
button.disabled = false;
}
Nathan L
06/09/2023, 3:38 PMChris Simon
06/09/2023, 3:40 PMobjClientSideEntryPoints.windowOpen = function(stSuiteletUrl, stTargetAttribute, stButtonId)
{
if(stButtonId)
{
var objButton = document.getElementById(stButtonId);
if(objButton)
{
objButton.disabled = true; // Disable the button to prevent double-clicking
}
}
return window.open(stSuiteletUrl, stTargetAttribute);
};