[MGNLFORM-245] Enable formSubmit component to add a Cancel button on the form template Created: 16/Sep/14 Updated: 02/Dec/14 Resolved: 27/Nov/14 |
|
| Status: | Closed |
| Project: | Magnolia Form Module |
| Component/s: | validation |
| Affects Version/s: | 2.2.6, 2.2.7, 2.2.8 |
| Fix Version/s: | 2.2.9 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Lars Fischer | Assignee: | Christoph Meier |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | form, support, uzh | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Template: |
|
||||
| Acceptance criteria: |
Empty
|
||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||
| Date of First Response: | |||||
| Description |
|
Enable formSubmit component to add a Cancel button. Original description: To reproduce the problem:
Clicking on the "Cancel" button now should clear the form but it doesn't. |
| Comments |
| Comment by Christoph Meier [ 24/Nov/14 ] |
|
The "Back" button has been used to "create" a "Cancel" button. When the "Back" button is clicked, the form is submitted, FormStateEngine and Validation is triggered => this then leads to the Validation problem which is rendered. For a "real" cancel button, existing component "formSubmit" can be extended to allow to add a cancel button. |
| Comment by Christoph Meier [ 24/Nov/14 ] |
|
Changes committed onto branch " |
| Comment by Christoph Meier [ 27/Nov/14 ] |
|
I've added some javascript which "clears" the form (all beside hidden fields) and removes validation error markers when clicking cancel button. |