No Code Attached Yet
avatar luX0r-reload
luX0r-reload
26 Jun 2025

Steps to reproduce the issue

Create a form in front-end with two fields.
One of them is displayed only if the other has a certain value.
Example:

<field name="confirm_button" type="mybutton" class="btn btn-primary" showon="accept_box:1"
/>

Expected result

The “confirm_button” field is hidden and is shown only when the value of form field “accept_box” is 1.

Actual result

Field "confirm_button" is visible regardless of the value of “accept_box” field.

System information (as much as possible)

Ubuntu 24.04.02
PHP 8.3.6
Joomla 5.2

Additional comments

The showon function assumes that a “hidden” css class is defined in the style sheet of the template you are using.
This is not always the case, especially when it comes to the front-end.

Wouldn't it be better to define the “hidden” css class directly within the page that contains the form with the “showon”?

avatar luX0r-reload luX0r-reload - open - 26 Jun 2025
avatar joomla-cms-bot joomla-cms-bot - change - 26 Jun 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Jun 2025
avatar luX0r-reload luX0r-reload - change - 26 Jun 2025
The description was changed
avatar luX0r-reload luX0r-reload - edited - 26 Jun 2025

Add a Comment

Login with GitHub to post a comment