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"
/>
The “confirm_button” field is hidden and is shown only when the value of form field “accept_box” is 1.
Field "confirm_button" is visible regardless of the value of “accept_box” field.
Ubuntu 24.04.02
PHP 8.3.6
Joomla 5.2
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”?
Labels |
Added:
No Code Attached Yet
|