calvin peters 1/10/2023 9:10:37 AM If you're familiar with your dbscript.js at all you can accomplish wht you need from there...I believe..
It's not a "NO CODE" solution but it's certainly "LOW CODE" I did try this in a dev db I'm upfitting and it seems to work as you wish it to.
Try this.
$(document).ready(function(){ // this ensures that your form is fully loaded before trying to execute any of the code.
if(jQuery("body#edit_t_{...***..}").length) { // this limits the scope of where your code will run...ie: just on this specific edit form.
$(document).bind("keydown",keyDown);
function keyDown(e){ if((e.ctrlKey) && (e.key === 'Enter')){ alert("Keys down are Ctrl + x + Return"); // not required... part of confirming the action triggered...remove or change as desired e.preventDefault(); e.stopPropagation(); $('#frm_edit > section > header > div > button.ui-button.ui-action.v3-button.fs-action.ui-action-save').trigger('click'); } }; }; };
at this point in the above --- if(jQuery("body#edit_t_{...***..}").length) { --- substitute this ---{...***..}--- for your dbase table Id that you find in the URL.
If you need this to work over more than one table you can use "OR" in your if(...) condition like this
--- if(jQuery("body#edit_t_{myTbl1}").length || "body#edit_t_{myTbl2}").length || "body#edit_t_{myTbl3}").length) { ---
I played a bit with a more generic selector but couldn't make one work and figured youo might be able to get to the rest with this running start anyway.
Good luck
|