Jorge Solá 12/6/2025 2:49:24 PM You can enable "Save and New" in Table Properties (User Interface section). This way, each time you save a new record using the "Save and New" button, you will be shown a blank edit form to add another record.
You can also add a script to the form in order to assign a hotkey to the "Save and New" button. Add it by going to Form Layout > New > New Text > HTML. The following sample script works with Ctrl+Shift+S. When you finish entering data, first press TAB to exit the input area, then Ctrl+Shift+S:
<script> document.addEventListener('DOMContentLoaded', function() {
// 1) Search for "Save and New" var btn = document.querySelector('button[data-tooltip="Save and New"], button.ui-action-saveandnew');
if (!btn) { console.warn('Save and New button not found.'); return; }
// 2) Add accesskey attribute btn.setAttribute('accesskey', 's');
// 3) Update title to show recommended key combo (help for users) // Use a clear text so users see the suggested combo in hover tooltip var baseTitle = btn.getAttribute('title') || btn.getAttribute('data-tooltip') || 'Save and New'; var suggested = 'Ctrl+Shift+S (shortcut)'; btn.setAttribute('title', baseTitle + ' — ' + suggested);
// 4) Fallback: Ctrl + Shift + S document.addEventListener('keydown', function(e) { // No activar dentro de inputs/textarea/contenido editable var tag = (e.target.tagName || '').toLowerCase(); if (tag === 'input' || tag === 'textarea' || e.target.isContentEditable) return;
// Detectar Ctrl + Shift + S if (e.ctrlKey && e.shiftKey && !e.altKey && !e.metaKey && e.key.toLowerCase() === 's') { e.preventDefault(); try { btn.click(); } catch(err) { console.error(err); } } });
}); </script>
|