?
avatar tonypartridge
tonypartridge
3 Jan 2017

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.

avatar tonypartridge tonypartridge - open - 3 Jan 2017
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jan 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 Jan 2017
avatar PhilETaylor
PhilETaylor - comment - 10 Jan 2017

This is not the place for support. Please post to the Joomla Forums.

avatar tonypartridge
tonypartridge - comment - 10 Jan 2017

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.

avatar PhilETaylor
PhilETaylor - comment - 10 Jan 2017

The ISSUES section of Github is NOT for support - you will get the same answer from others.

avatar zero-24 zero-24 - change - 10 Jan 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-01-10 20:31:59
Closed_By zero-24
avatar zero-24 zero-24 - close - 10 Jan 2017
avatar zero-24
zero-24 - comment - 10 Jan 2017

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 ?

avatar tonypartridge
tonypartridge - comment - 10 Jan 2017

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.

avatar tonypartridge
tonypartridge - comment - 10 Jan 2017

@zero24 I know how to do it with JS thanks.

So it's up for discussion then, should it be added to the core? With long forms, adding it to the top of the page is certainly a very poor UX and not at all helpful.

avatar zero-24
zero-24 - comment - 10 Jan 2017

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.

avatar tonypartridge
tonypartridge - comment - 10 Jan 2017

@zero-24 thanks for your helpful responses, always nice when someone else is helpful.

I've implemented it in a ruff way only valid for the form I am doing it with. But I'll put it to the UX team for discussion in J4UX then :-).

Thanks again @zero-24 for clarification.

avatar dgt41
dgt41 - comment - 10 Jan 2017

@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:

  • is required but is empty
  • the data is not valid
  • the data is valid

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)

avatar zero-24
zero-24 - comment - 10 Jan 2017

But I'll put it to the UX team for discussion in J4UX then :-).

?

avatar tonypartridge
tonypartridge - comment - 10 Jan 2017

@dgt41 perfect, thank you the exact response I was expecting to get. I'll follow up in the J4UX repo.

avatar dgt41
dgt41 - comment - 10 Jan 2017

@tonypartridge is there a J4UX repo or you are referring to the template one?

avatar tonypartridge
tonypartridge - comment - 10 Jan 2017

@dgt41 the template one, sorry for the confusion.

Add a Comment

Login with GitHub to post a comment