Avatar

About kintone keyboard shortcuts

Afief

Dear Developers,

I want to ask if I could disable Ctrl + S during record create page (or edit page), because at the moment I am under a task that require me to disable Ctrl + S on a certain conditions, I tried to search around stackoverflow about disabling keyboard shortcuts but on my case it still saving the record I'm on, or if maybe there is a tricky way to make a record not saved immediately after a user press Ctrl + S (like validation on a certain field that would be filled after a callback from a method), let me know your opinion.

Thank you in advance

Follow 2 followers
0

2 comments

Avatar
Afief 0 votes

Hello Yuzo Arai,

At the moment, I found a tricky way, and that's by making a validation where a field should not empty (I put an error if that field is empty during app.record.create.submit), and during app.record.create.show, I put something like Field_Element.value = 'Fill with something', which means, if that field empty, any save action will resulting a custom error shown to user, and if it's filled, it will allow user to save (where this field will automatically filled with asynchronous javascript API that I use). As for now this tricky way kinda work for a task that currently I'm developing on (An attendance application using Kintone). Because I tried some way to disable keyboard shortcuts but still able to save.

I appreciate your answer, thank you very much!

0