Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
HIDE CONVERT BUTTON IN EDIT MODE
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 {
0