You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am using alf.io to host a car show and we would like to display the additional fields we collected. For our purposes, this is the car's make/model/year.
To Reproduce
Steps to reproduce the behavior:
Go to Templates
Select a Template such as Ticket_PDF
Try to add an additional field (note: This is not documented but I found it in the source code as "additional-fields" with: {{additional-fields.make}}
Press preview
You will get an error saying "field does not exist"
Expected behavior
You can preview the template
Workaround
Using the devtools in the browser, you can unhide the save button and save the updated template. The additional field then works as expected and displays in the final rendered template the registrant receives.
Potential Fix
I think this is happening due to this line passing an empty map into the template editor:
Describe the bug
I am using alf.io to host a car show and we would like to display the additional fields we collected. For our purposes, this is the car's make/model/year.
To Reproduce
Steps to reproduce the behavior:
{{additional-fields.make
}}Expected behavior
You can preview the template
Workaround
Using the devtools in the browser, you can unhide the save button and save the updated template. The additional field then works as expected and displays in the final rendered template the registrant receives.
Potential Fix
I think this is happening due to this line passing an empty map into the template editor:
alf.io/src/main/java/alfio/util/TemplateResource.java
Line 201 in 1cc53b7
We should be passing the collection of fields.
The text was updated successfully, but these errors were encountered: