Skip to content

[FEAT] Extend the 'text' field type with subtypes for email, tel, url #169

Description

@MurzNN

Is your feature request related to a problem? Please describe.
I need to add a field with the in-browser URL validation, but see no separate field in BuzzForm registry for this.

Describe the solution you'd like
Actually, the standard text field should be enough, we can just extend it to add the "variant" option and apply the value to the type attribute for the <input> HTML tag.
Suggested variants: email, url, tel, search.

And, by the way, I think we can merge the separate email field type into the text with the variant, what do you think about this?

Describe alternatives you've considered
Alternatively, we can introduce separate BuzzForm fields types for url and tel, but I believe this will be toooo much ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions