Page 1 of 1

[FormBuilder] Specify default form template

Posted: Tue Jun 25, 2024 10:43 pm
by 10010110
So, in FormBuilder, if you create a new form, there is a default form template that prepopulates the textarea in the edit screen. I was looking for a way to have an own template as this default since I have a client that creates forms but forgets to set the proper custom form template. It looks like that default template is stored in /modules/FormBuilder/templates/RenderFormDefault.tpl and I tried to replicate that in /assets/module_custom/FormBuilder/templates/RenderFormDefault.tpl but apparently this does nothing since the same old default template is prepopulated when creating a new form. Is there a trick to get this working?

Re: [FormBuilder] Specify default form template

Posted: Fri Jul 05, 2024 9:39 am
by magallo
i think your only option is to override the original template. Open the RenderFormDefault.tpl file located in /modules/FormBuilder/templates/ and make the necessary modifications to customize it according to your needs. Remember to do this again if you upgrade the module.

Re: [FormBuilder] Specify default form template

Posted: Fri Jul 05, 2024 1:12 pm
by DIGI3
You should be able to use module_custom for this so you don't have to redo it each update.

Re: [FormBuilder] Specify default form template

Posted: Fri Jul 05, 2024 3:07 pm
by magallo
module_custom doesn’t work here for some reason. I think because it’s loading a hard coded template link