form validation problem in conditional field #127
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#127
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi
One issue that I have noticed today is when i use conditional field ( Editing the Admin View -> Conditions) , all fields used in Conditions have problem with front-end validation. i checked that fileds required="false" att is set correctly but if those field leave empty the validation give me error (front-end).
thank you
You must always add one more hidden field to the view to insure that it can work to pass the server side validation.
So it is a hidden field and the field xml looks like this
Just add it to any page that use the conditional feature and it should resolve the validation problem.
Thank you very much,
i put that hidden field to my form but still client-side validation give me error :
(the first name & last name not required but validation give me error)
i found the solution! if i'm use (required="false" ) the validation will not work correctly in conditional form (client-side validation) , if leave required empty (required="" ) the problem will be resolved!
Yes sure, or you can just remove the line altogether.