Skip to content

How to change the text in a form submit button inside a controller #5982

@itrascastro

Description

@itrascastro

The documentation explains how to do it in the template:

http://symfony.com/doc/current/reference/forms/types/submit.html#label

but how can we do it from the controller?

I have a Form Class where the submit button is created with a 'label'. Now I need to customize that label from different controller actions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions