More of a question than an issue for the JForm experts.
When using a super long form JForm client side validation shots you to the top of the page displaying an error message required field in the system messages container.
IS there a way out of the box to append the message to a field individually? Obviously I can do this via JS on a per field basis, but ideally it would be great if Joomla! allowed this and I'm just not seeing how to add it or override it.
Labels |
Added:
?
|
As always a helpful response from your phil.
It's more of an issue if it doesn't exist hence the question since I cannot find the functionality and thus don't believe it to exist. Which then becomes and issue for discussion.
Unless you have something helpful to add, please do not comment on my issues.
The ISSUES section of Github is NOT for support - you will get the same answer from others.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-01-10 20:31:59 |
Closed_By | ⇒ | zero-24 |
There is no way I know to do this without custom JS.
Please move that kind of questions to the forum, the Google Group (https://groups.google.com/forum/m/#!forum/joomla-dev-cms) or the Joomla Stackexchange (http://joomla.stackexchange.com/)
Thanks
I am not asking for support Phillip and never would on a github issues, I am asking if the Joomla! Code base supports a method. I cannot see it does and wish for clarification of people who know the CMS better than myself.
If it does not exist then it is upfor discussion to be added.
If it does exist then we need to document it which I am happy to do once I know if it exists.
Again helping the project. Your reply is negative and to reply with such a response to myself who has been contributing to the project and fully understand what GitHub is for is just provocative.
I won't be responding to anymore of your comments.
I think we are open for implemention ideas that are B/C (in terms of code). I'm not a JS expert so I'm not sure if that is that easy in JForm.
If you can find a way i'm happy to test. If you know how to do this via JS maybe you can come up with a RFC so we can discuss the things.
But i think generally everything that can improve the UX is helpful.
@tonypartridge the current validation script in the isValid function checks the value against a regEx and returns either true or false. Even if you add an extra check for null (before that function), you still have only 3 possible outcomes for the end user:
And then there is the other B/C problem: if you want to append a message (lets say under the input) you have to do it with Bootstrap 2 notation and that will break for anyone using BS3 or another framework. No easy solution here I'm afraid, but we'll tap this in J4 (hopefully)
But I'll put it to the UX team for discussion in J4UX then :-).
@tonypartridge is there a J4UX repo or you are referring to the template one?
This is not the place for support. Please post to the Joomla Forums.