1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

the form does not keep custom_css.php file on errors

Discussion in 'Community' started by mirceat, Jan 3, 2019.

  1. mirceat

    mirceat Member

    Level: Community
    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
     
  2. troester

    troester Well-Known Member Staff Member

    Level: Community
    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?
     
  3. mirceat

    mirceat Member

    Level: Community
    "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
     
  4. troester

    troester Well-Known Member Staff Member

    Level: Community
    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...?
     
  5. mirceat

    mirceat Member

    Level: Community
    There form is called via links, see the image below:

    Clipboard01.jpg
     

Share This Page