Skip to content

set bootstrap class in a form field SplitPhoneNumberField()  #624

@bikash829

Description

@bikash829

Hi! I am trying to make a form using SplitPhoneNumberFiled(). Everything is working so well but i want to style those fields. And i couldn't find out how to set an attributes in a field.

 phone = SplitPhoneNumberField()
    additional_phone = SplitPhoneNumberField()
    class Meta:
        model = User
        fields = ['phone','additional_phone']

That's my code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions