Showon attribute in xml file

karinep

New Member
Hi everyone,

I'm trying to set a showon attribute in a field in /plugins/fabrik_element_databasejoin/forms/fields.xml to make like a conditional field, doesnt anyone know if this attribute is working on Fabrik? because no changes happen in the frontend.

Best regards,
Karine
 
But you should not hack a Fabrik core file.
You can create your own element plugin.
 
Hi,
According to the Wiki it should work: http://fabrikar.com/forums/index.php?wiki/fabrik-back-end-form-fields-a-f/
Make sure syntax and all is correct?
Hi,

I'm pretty sure that I'm doing correctly, I tried to use the simplest example in https://docs.joomla.org/Form_field#Showon and didn't work. Take a look:
Code:
<field
    name="foo"
    type="list"
    >
    <option value="1">JYES</option>
    <option value="0">JNO</option>
</field>
<field
    name="bar"
    type="text"
    showon="foo:1"
/>
This results in:
RlWJbPY

I did some tests in administrator\components\com_contact\config.xml file and here works perfectly, maybe is the version of something.. Do you have any hints?
 
Hi,

I'm pretty sure that I'm doing correctly, I tried to use the simplest example in https://docs.joomla.org/Form_field#Showon and didn't work. Take a look:
Code:
<field
    name="foo"
    type="list"
    >
    <option value="1">JYES</option>
    <option value="0">JNO</option>
</field>
<field
    name="bar"
    type="text"
    showon="foo:1"
/>
This results in:
RlWJbPY

I did some tests in administrator\components\com_contact\config.xml file and here works perfectly, maybe is the version of something.. Do you have any hints?
The image is here, sorry
 

Attachments

  • fabrike.png
    fabrike.png
    16.2 KB · Views: 91
Does it work outside of Fabrik, e.g. with a Joomla custom field?
Hello,

Yes, look the images. I use the simple example in https://docs.joomla.org/Form_field#Showon in administrator\components\com_contact\config.xml and worked, but using the same example in plugins\fabrik_element\databasejoin\forms\fields.xml doesn't worked.

Best regards,
Karine
 

Attachments

  • Captura de Tela (26).png
    Captura de Tela (26).png
    91.5 KB · Views: 87
  • Captura de Tela (27).png
    Captura de Tela (27).png
    93.2 KB · Views: 82
  • Captura de Tela (28).png
    Captura de Tela (28).png
    168.4 KB · Views: 80
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top