Proposal: Adding confirmation messages flexibly to Form Builder
This issue explains a new proposal for the "Support more workflows" section in the Form Builder roadmap: Add confirmation messages flexibly as we know it from Drupal webforms or Caldera Forms.
Currently, there is no success message at all when I submit a form - as a user, I do not receive any feedback as to whether my data has really been processed.
There should be a message for a successful submission resp. a message for errors. For simple use cases such as editing data in the backend, the definition of messages per form (cf. #2957) is certainly sufficient. For more complex applications, more flexibility would also make sense in view of other features on the Form Builder roadmap, e.g. displaying messages after forwarding to a multi-step form (cf. #4574) or modal forwarding. To put it short: We should do it the way webforms does:
- There should probably be a translated fallback / standard message as well.
- In order to be able to design success messages more individually, it should be possible to include form entries in the success message. Example: Dear Frank, thank you for signing our petition. In Caldera Forms, for example, this is comfortably solved via slugs / "magic tags":
Cf. "post-submit tokens" on Form Builder roadmap and #4576