Skip to content

FluentTextField mask first 5 characters #1789

Closed Answered by vnbaaij
Nehakrg asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a way to mask the first 5 characters as shown in the placeholder? <FluentTextField @bind-Value="user.SocialSecurityNum" Maxlength="9" Minlength="9" Placeholder="*****####" />

No, we do not have any functionality for that. Possible solution might be to subclass this component in a component of your own (see https://chrissainty.com/building-custom-input-components-for-blazor-using-inputbase/ for some more information)

How to use the pattern parameter to display the phone number with dashes? <FluentTextField Id="txtCellPhoneNo" @bind-Value="user.PhoneNum" Placeholder="###-###-####" InputMode="InputMode.Telephone" Minlength="10" Maxlength="10"/>
The Pattern parameter can only be u…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Nehakrg
Comment options

Answer selected by Nehakrg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants