nikosdion / plg_content_fieldsshowon

Allows Joomla custom fields — including in subforms — to be displayed or hidden based on another custom field's value.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to set up the "Show On" field !

HDInfautre opened this issue · comments

Hello
Thank you for this plugin which has a very important feature for me, if I understood correctly it allows on a form to show/hide a field according to another custom field?

Nevertheless, I didn't understand the syntax to use. I see a "Show On" field. When I hover over it, there is a link in blue that I don't read: and if I go to : https://github.com/nikosdion/plg_content_fieldsshowon#readme, I don't get an explanation either.

Can you tell me where to find this syntax?

If you install the plugin, you have a new Parameter when you edit any Custom Field, called "Show On".
There is a line of explanation below that Parameter:
Controls when the custom field will be shown based on the values of one or more custom fields. Use the Show On notation explained in the [Joomla! documentation](https://docs.joomla.org/Form_field#Showon).

Follow that link and you will have examples. It works "the standard Joomla way".

Let's take an example from my site:

  • I have another Custom Field of Type List, called "blabla" and having 2 possible values : "open" or "closed"
  • then I would type the following to show my Custom Field only if blabla is set on open :
    blabla:open

Thanks