Category / Section
How to configure .NET MAUI OTP Input control for alphanumeric values
1 min read
This article explains how to configure the .NET MAUI OTP Input control to accept both letters and numbers. To enable alphanumeric input, set the Type property to Text.
XAML:
<syncfusion:SfOtpInput Type="Text" Value="e3c7"/>
C#:
var otpInput = new SfOtpInput
{
Type = OtpInputType.Text,
Value = "e3c7"
};
Output:
You can download the complete sample from GitHub.
Conclusion
We hope you found this guide helpful in learning how to configure the .NET MAUI OTP Input for alphanumeric values. For more features, visit our .NET MAUI OTP Input feature tour page. You can also explore our .NET MAUI OTP Input documentation to understand better how to present and manipulate data.
Please let us know in the comments section below if you have any queries or need clarification. Alternatively, you can contact us by creating a support ticket. We are always happy to assist!