Validation Required Unexpected Behaviour and Quirks

se sem 25 Nov, 2020
Hi.
​
Scenario to make a field in a hidden element required if enabled:
​
Create hidden container visible on button click, add some basic fields also place clone action repeater with multi row fields within container (which works perfectly).
​
On container: "Toggle Shown" and "Toggle fields validation enabled" for the button action
On all fields (including multi row): Select "Disabled (Keep Validation rules in disabled mode)" and "Required" for the fields
​
Expected behaviour: All fields marked with red asterisk to denote required. Form won't submit until condition satisfied.
Actual behaviour: All normal fields work correctly. Multi row fields show asterisk but can be submitted empty.
​
​
Then remove "Disabled (Keep Validation rules in disabled mode)" from multi field repeater fields.
Behaviour: Asterisk is not displayed. Try to skip a field and it's hi lighted in red warning that it's required. Form cannot be incomplete.
​
So validation works with these fields but the display is not as expected.
​
Scenario: Radio switch with yes / no option. Field label is "Are you requesting a new resource". Set to required.
Behaviour: Red asterisk appears next to label (as expected). Red asterisk appears next to both "yes" and "no" options on radio switch. Which is not expected and potentially confusing.
​
Validation Required Unexpected Behaviour and Quirks image 1
Max_admin Max_admin 27 Nov, 2020
Could you please post a form with the problem, please remove any other features from the form backup except those with the issue!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.