Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@thepurpleblob

Description

@thepurpleblob
Issue body actions

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.Clear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal 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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.