Hi,
I'm trying to build a modal dialog box where the user gets a confirmation message with a YES and a NO button. I'm using SC.ask for this purpose.
The confirmation is displayed correctly, however the default focus is on the YES button.
To ensure that the user does not skip through the confirmation by pressing Enter absentmindedly, I want to shift the default focus to the NO button.
Can you please tell me how this can be done?
Thanks
I'm trying to build a modal dialog box where the user gets a confirmation message with a YES and a NO button. I'm using SC.ask for this purpose.
Code:
SC.ask("Do you want to proceed?", new BooleanCallback() { public void execute(Boolean value) { if(value) { // YES, proceed with update sendUpdateRequest(record); } } });
To ensure that the user does not skip through the confirmation by pressing Enter absentmindedly, I want to shift the default focus to the NO button.
Can you please tell me how this can be done?
Thanks
Comment