OtpInput JSON Form
Keep one-time codes as strings with leading zeroes.
How this example works
OtpInput uses a string schema and x-widget-options.length from 1 to 8, defaulting to 6. The widget validates exactly that many digits in addition to schema constraints. This code starts at 001234; its leading zeroes survive submission. Reset restores the string.
OtpInput example
Submitted JSON
Submit the form to see its JSON.