Welcome, Guest

Validation system may not work as documented?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Validation system may not work as documented?

Validation system may not work as documented? 1 year, 10 months ago #14939

According to this page:

crosstec.de/turn-fields-and-sections-on-...f-conditionally.html

"Validations are disabled for invisible elements"

Does this also mean that validations are disabled for elements inside of invisible sections?

I have sections that are shown or hidden based on what a user selects. Now if the user selects a section some fields in the section that appear are required and set to validate.

The issue is that these fields attempt to validate even though they are inside a hidden section.

I have been working with support for two weeks to try to resolve this, but so far no luck. You guys have any suggestions or workarounds?

Doug

Re: Validation system may not work as documented? 1 year, 8 months ago #16787

so far i have no idea to do this....it has to switch..if a user selects a section, the required fields had to set to validate..if the user selects another section the before activated validations should be set to disabled..but no idea how to do this..

May it would be better to do the validation on your own??

matthias
  • goshmac
  • OFFLINE
  • Expert Boarder
  • Posts: 113
  • Karma: 5
Last Edit: 1 year, 8 months ago by goshmac.

Re: Validation system may not work as documented? 1 year, 4 months ago #24105

I have this problem too. The only workaround I see is to make invisible each element individually...
  • darkheart
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0

Re: Validation system may not work as documented? 1 year, 2 months ago #32799

Hi there,

I have a similar issue that validation of fields are still active and triggered, even if the section where the elements are in is turned off by a visibility rule.

The visibility rule applies to a radio button, which switches two sections.
turn on section section1 if radio is 1
turn off section section1 if radio is 2
turn on section section2 if radio is 2
turn off section section2 if radio is 1


Both sections are turned off by default.

When I fill in the form validation works fine and when I choose radio value 1 section1 is shown, section2 stays hidden, and on submit the validation of section2 is not applied.

So far so good, but...
When I go back to the form with the parameter "Submission editable by user" enabled in the menu item, it shows that radio is set to value 1, but section1 is not visible and elements in section2 will fail validation when I press submit.
I will have to choose and click on the radio element again to let the visibility rules apply and the corresponding validation accordingly.

Despite the showing of the correct value of the radio button, the visibility rules have not been applied but the validation of the invisible elements will be triggered for both sections (which should not apply at all because both sections are turned off. So actually there are two functional errors at the same time).

I believe the cause of this has to be searched in the visibility rules more than in the validation, but who am I... A solution of any kind would be very much appreciated!

Thanks.
  • dtiernego
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
  • Karma: 0
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.49 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint