Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By msizec on
Hello there ,
Ive been struggling all day to find a way to alter the confirmation message displayed as a last page of my modal form.
Ive tried to alter different variables from $form or $form_state in form_alter hook but despite those variables are passed by reference, the confirmation message isn't modified.
Which hook would be the better and which variable should I alter ?
Thank you ...
Comments
=-=
If you are trying to override a core text string you can do so in settings.php or utilize the stringoverrides.module
Its not a core message, its
Its not a core message, its the confirmation message of a webform (from webform module).
Theres way to alter it but this specific webform is in a modal form.
And I think this is why I can't alter it
But I'm pretty sure somebody already manage to do the same ...