Open Larsundso opened 2 days ago
Hi @Larsundso,
Can you share what your overall template structure looks like for this custom formatting template? I'm curious about where each file (including _row.twig
) is located in your setup.
To be clear, all of your associated files should be placed within your bootstrap-5
template directory, e.g.
/my-custom-template/
index.twig
_row.twig
fields/
default.twig
checkbox.twig
It's also possible that there's a conflict with naming the custom formatting template as bootstrap-5
as well, so if the issue continues, please try naming it something different. 🙂
Hi back @kjmartens, I was following this documentation entry about creating modified templates from samples.
If you wish to create your own modified version, just copy the code below, or the template file (e.g. bootstrap-5.twig) and paste it into your Formatting Templates directory in the specified Craft Templates directory (e.g. /templates/_freeform/), and rename it to whatever you like.
So i only have a "My-Template.twig" with the contents of this template samples index.twig. I did not modify it at this point in time.
What happened?
In the middle of updating from 4.x to 5.x, I already did migration and am now in the process of transforming my templates.
I've followed the docs for creating custom templates by copying the bootstrap-5 index.twig into my custom template file. Trying to open/render the page now throws this error:
I tried changing the import on the first error, that didn't work. How can i fix this?
Errors and Stack Trace (if available)
How can we reproduce this?
Freeform Edition
Pro
Freeform Version
5.6.8
Craft Version
4.12.9
When did this issue start?
After upgrading from older Freeform version
Previous Freeform Version
4.2.7