Skip to content

How to change the text in a form submit button (in the template) isn't clear #3983

Closed
@thepurpleblob

Description

@thepurpleblob

The "normal" method of overriding the default text on controls is explained in the documentation and is to use {{ form_label( form.thing, 'New text') }}. This doesn't make any sense (and is completely ignored) for submit type controls.

The actual method is to do {{ form_widget( form.save, 'Press this!' ) }}. However, that isn't specifically mentioned as far as I can see. A couple of lines about this would have saved me a bit of time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions