Skip to content

Feedback/success message is never triggered #257

Open
@eduardomart

Description

@eduardomart

This used to work in BF 3.x but now the 'Feedback' never gets displayed. The form simply refreshes after a successful submission, no feedback at all.

Workaround:

In boltforms.form.yml add the redirect property under feedback, like so:

feedback:
   success: Message sent!  #<--- this is not working
   redirect:
      target: page/contact?success=true

In my case page/contact is the record that loads my contact form, so in its template I use the following code:

{% if app.request.get('success') == true %}
   <p>Message sent!</p>
{% else %}
   {{ boltforms('contact') }}
{% endif %}

That way the success message is only displayed when triggered by the success redirect.

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