the form does not keep custom_css.php file on errors

mirceat

Member
Hello,

I noticed something strange: the form does not keep custom_css when there is an error validating an item.

I copied the boostrap_tab template and rename it bootstrap_tab_acte_ds. In this new template i changed the custom_css.php file by adding some css styles specificaly for this form.
The problem is when a user submit form and there is a validation error, the custom_css.php is changed to the "default" template, bootstrap_tabs instead of keeping the values from bootstrap_tabs_acte_ds:

Example:

before submitting the form:

<link href="http://mywebsite.com/components/com_fabrik/views/form/tmpl/bootstrap_tabs_acte_ds/custom_css.php?c=166&amp;rowid=&amp;view=form&amp;rowid=" rel="stylesheet" />

after submitting the form but there is a validation error:

<link href="http://mywebsite.com/components/com_fabrik/views/form/tmpl/bootstrap_tabs/custom_css.php?c=166&amp;rowid=&amp;view=form&amp;rowid=" rel="stylesheet" />

Joomla 3.9.1, Fabrik 3.9

Thank you
 
What do you mean with "default" template, the one selected in the form "Layout" setting?
How do you call your form and how do you add the "new" template?
 
"default" for using tabs in form.

In form "Layout" settings i've selected the new template "bootstrap_tabs_acte_ds" created by copying the existing bootstrap_tabs template and rename it bootstrap_tabs_acte_ds.

Clipboard01.jpg
 
I can't replicate (nor Fabrik3.9 nor GitHub, existing or new records).
How do you call the form? via list edit link, form menu, content plugin, module...?
 
We are in need of some funding.
More details.

Thank you.

Staff online

Members online

Back
Top