-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong custom template loaded when using back button #1671
Comments
Hi @stefexitable, Can you share a few things so I can help troubleshoot? 🙂
Thanks! |
Hi @kjmartens , sure!
I copied the templates from
It’s copied from
I disabled the ”Formatting Template” option since I don’t want my end users to change templates. The default setting is set to "Basis dark". When I set it to "Bootstrap 5", and recreate my form (if I don’t recreate it, it looks like the default settings aren’t inherited) the form does look right after switching form pages! Although probably the default Bootstrap 5 form is loaded, and not my custom one. I might have missed the option to programmatically set the "Formatting Template" to my custom template. Thanks for your help! |
Thanks for the additional information, @stefexitable. However, for the first item, I was hoping to see the template code where you call the form (where As for the third point, this could be an important piece of the puzzle. In the Form Builder settings, can you check and see if you have your desired default formatting template specified in the If you've locked it, can you temporarily unlock it and update all of the existing forms to use the correct formatting template, resave, and then re-lock this setting and see if that makes any difference? 🙂 |
Hope this helps @kjmartens 🙂 My template where I’d like to show the form:
The Form Builder settings: By switching to “Bootstrap 5” my issue is partly resolved since the form fields then get the Bootstrap classes, although my custom template is still not loaded. In the end I'm planning to customize the template to my needs. |
My apologies, I totally missed the option to set the "Directory Path" in the template manager. After setting it to my custom path, the issue is resolved. Thanks for your help @kjmartens! |
What happened?
I’m using a customized Bootstrap 5 template, which loads fine on initial page load. But when I go to a new form page, and then go back to the first form page, another incorrect template is used.
Correct template
Incorrect template
Errors and Stack Trace (if available)
No response
How can we reproduce this?
Freeform Edition
Pro
Freeform Version
5.8.0
Craft Version
4.13.1.1
When did this issue start?
No response
Previous Freeform Version
No response
The text was updated successfully, but these errors were encountered: