- Home
- /
- Design
- /
- DMBFormBuilder
- /
- Token fields
Token Fields
TokenFieldBuilder documentationTokenFieldBuilder renders sensitive text as a protected input with reveal and clipboard actions, while keeping FormBuilder validation behavior.
Code Examples
TokenFields.cshtml
@Html.TokenFieldBuilderFor(m => m.ApiToken).Render()
@Html.TokenFieldBuilderFor(m => m.FloatingToken).SetLabelPresentation(FormLabelPresentation.Floating).Render()
@Html.TokenFieldBuilderFor(m => m.InlineToken).SetLabelPresentation(FormLabelPresentation.Inline).Render()
@Html.TokenFieldBuilderFor(m => m.HiddenToken).SetLabelPresentation(FormLabelPresentation.Hidden).Render()
@Html.TokenFieldBuilderFor(m => m.RequiredToken).Render()
@Html.TokenFieldBuilderFor(m => m.NoCopyToken).SetToggle().SetCopy(false).Render()
@Html.TokenFieldBuilderFor(m => m.NoRevealToken).SetToggle(false).SetCopy().Render()
@Html.TokenFieldBuilderFor(m => m.ReadOnlyToken).SetDisabled().Render()
Session Consent : Consent to use session for this website