[MGNLFORM-189] formSelection: check for null Created: 16/Aug/13  Updated: 16/Aug/13  Resolved: 16/Aug/13

Status: Closed
Project: Magnolia Form Module
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Zdenek Skodik Assignee: Roman Kovařík
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File error-stacktrace.txt    
Issue Links:
relation
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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

If the field is not mandatory and a submitter doesn't select any option, while there is no default value defined, the form couldn't be sent.

The attached stacktrace comes from the multistep form at demo.



 Comments   
Comment by Roman Kovařík [ 16/Aug/13 ]

If you make a field not mandatory, you should check it for null in email template:

http://demoauthor45.magnolia-cms.com/.magnolia/dialogs/form.html?mgnlPath=/demo-features/special-templates/multi-step-form/content/singleton&mgnlParagraph=form:form&mgnlRepository=website&mgnlLocale=en&mgnlRichE=true&mgnlRichEPaste=textarea&mgnlCK=1376660971574

Go to Email tab -> Type field:

...
${topic!""}
...
Generated at Mon Feb 12 05:37:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.