- Home
- /
- Design
- /
- DMBFormBuilder
- /
- Country fields
Country Fields
CountryFieldBuilderExtensions documentationCountryFieldBuilderFor renders the GDF country list through SelectFieldBuilder, with a shortcut button that selects the country detected from the browser request.
Code Examples
CountryFields.cshtml
@Html.CountryFieldBuilderFor(m => m.Country).Render()
@Html.CountryFieldBuilderFor(m => m.FloatingCountry).SetLabelPresentation(FormLabelPresentation.Floating).Render()
@Html.CountryFieldBuilderFor(m => m.InlineCountry).SetLabelPresentation(FormLabelPresentation.Inline).Render()
@Html.CountryFieldBuilderFor(m => m.GroupCountry).SetLabelPresentation(FormLabelPresentation.Group).SetGroupIcon("bi bi-globe2").SetQuickSelectVariant(VariantStyle.Success).Render()
@Html.CountryFieldBuilderFor(m => m.HiddenCountry).SetLabelPresentation(FormLabelPresentation.Hidden).Render()
@Html.CountryFieldBuilderFor(m => m.RequiredCountry).Render()
@Html.CountryFieldBuilderFor(m => m.DisabledCountry).SetDisabled().Render()
Session Consent : Consent to use session for this website