Add onFirstCodeKeyDown function #7
Replies: 2 comments
-
Hello @smartland007, Firstly, thank you for your this suggestions. Your feedback helps us make the library even more versatile and user-friendly. Regarding your suggestion to add the In our latest update, we've introduced the $().otpdesigner('option', 'onchange', function () {
// Code to remove the error message here
// Once the action is done, set 'onchange' back to null
$().otpdesigner('option', 'onchange', null);
}); Once again, we greatly appreciate your feedback and hope these updates align with your needs. Please feel free to reach out if you have any further questions or suggestions. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hello,
Excellent !! Thank you very much.
Would it be better with a camel-case typo like: onChange instead
of onchange ?
Regards,
…On Wed, Aug 30, 2023 at 8:17 AM HichemTech ***@***.***> wrote:
Hello @smartland007 <https://github.com/smartland007>,
Firstly, thank you for your this suggestions. Your feedback helps us make
the library even more versatile and user-friendly.
Regarding your suggestion to add the onFirstCodeKeyDown function, we
appreciate your creative use case. We've taken your suggestion into account
and have made further improvements to the library.
In our latest update, we've introduced the onchange callback function,
which is executed whenever the OTP code changes—whether through typing,
clearing, or setting. This new functionality provides a way to achieve the
behavior you described. To address your specific use case of hiding an
error message when the user starts typing a new code, you can utilize the
onchange function in the following manner:
$().otpdesigner('option', 'onchange', function () {
// Code to remove the error message here
// Once the action is done, set 'onchange' back to null
$().otpdesigner('option', 'onchange', null);});
Once again, we greatly appreciate your feedback and hope these updates
align with your needs. Please feel free to reach out if you have any
further questions or suggestions.
Best regards,
@HichemTab-tech <https://github.com/HichemTab-tech>
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXGUD56K5HUH4MSRYBWATDXX3LGXANCNFSM6AAAAAA4CP74XU>
.
You are receiving this because you were mentioned.Message ID:
<HichemTab-tech/OTP-designer-jquery/repo-discussions/7/comments/6860271@
github.com>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to add a new function like:
onFirstCodeKeyDown | Function | A callback function executed when the user types the first code.
This will allow for example to call a function to hide an error message on the screen. The use case is the following:
Beta Was this translation helpful? Give feedback.
All reactions