Articles in this section
Category / Section

How to add a separator in the .NET MAUI OTP Input Control

1 min read

This article explains how to add a separator between input fields in the .NET MAUI OTP Input control. You can enhance readability by inserting a custom character between OTP fields using the Separator property.
XAML:

<syncfusion:SfOtpInput Separator="-" Value="9183"/> 

C#:

var otpInput = new SfOtpInput
{
   Separator = "-",
   Value = "9183"
}; 

Output:

OtpinputSeparator.jpg

You can download the complete sample from GitHub.

Conclusion

We hope you found this guide helpful in learning how to add a separator in the .NET MAUI OTP Input. For more features, visit our .NET MAUI OTP Input feature tour page. You can also explore our .NET MAUI OTP Input documentation to better understand 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!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied