84
Views
7
Comments
Solved
How to do OTP input field using JavaScript in Traditional.
Application Type
Traditional Web

I want to use input fields as a OTP in traditional using javaScript with copy paste operation. 

2021-08-12 05-19-40
Shubham Janbandhu
Solution

So sorry, my mistake.

Check this OML for Traditional.

Same functionality but different logic.

Regards,

Shubham

OTP.oml
2023-10-21 19-42-11
Tousif Khan
Champion

Hello
You can add an input field for Otp what's the issue, What you are trying to achieve here can you please be more specific about your issue, can you elaborate it,

With this information, it is hard to understand what are your requirnments

Are you looking for a JavaScript code to auto-copy the OTP you received?
Also where you are getting your OTP is it on email or on your device phone?
Are you using your application on a mobile browser or on a desktop browser ?

Best Regards
Tousif Khan

2023-12-27 15-30-10
Hari Haran

I have a six input field.. if I enter any value in first it should focus on next input field.

Then if I click backspace it should focus on previous input field and if I copy paste a six digit value in first input field the value should separate and fill in all input field.


2021-08-12 05-19-40
Shubham Janbandhu

Hi Hari Haran,

You can refer below OML.

I tried to map the requirements.

  • If user enter any value in first it will focus on next input field.
  • If user click Backspace, it will focus on previous input field.
  • If user copy-paste six digits value in first input field the value will separate and fill in all input field.

Check this out and let me know if you need further help.

Regards,

Shubham


OTP.oml
2023-12-27 15-30-10
Hari Haran

Thankyou so much. This works good.. but I need for Traditional.

2021-08-12 05-19-40
Shubham Janbandhu
Solution

So sorry, my mistake.

Check this OML for Traditional.

Same functionality but different logic.

Regards,

Shubham

OTP.oml
2025-12-17 21-10-06
Shlok Agrawal

Hey @Hari Haran 

Could you please specify in more detail as we could discuss the answer to be more specific.


2021-08-12 05-19-40
Shubham Janbandhu

Hi Hari Haran,

You can refer this post, same issue has been solved.

Link: https://www.outsystems.com/forums/discussion/82787/how-to-input-otp-input-field-with-multiple-input-boxes-from-sms/ 

Hope this helps.

Best Regards,

Shubham

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.