Hi Guys,
Im trying to hide the save & convert button in edit mode (Lead form) but i cant do it, i tried at first with a Workflow but the button in edit mode is not available throught a WF so then i tried to do it with a script but its not working
/**
- @NApiVersion 2.x
- // if (currentRec.id) { // Si tiene un ID, es un registro existente (modo edición)
// Buscar el botón por su ID y eliminarlo
var submitConvertButton = document.getElementById('submitconvert');
if (submitConvertButton) {
submitConvertButton.closest('td').remove(); // Elimina el contenedor (td) del botón
}
}function pageInit(context) {
var currentRec = currentRecord.get();}return {
pageInit: pageInit
};
});
Any ideas?
Thanks for your help