Welcome, Guest
Username: Password: Remember me

TOPIC: J-Cook V2.0: Field information showed immediately

J-Cook V2.0: Field information showed immediately 10 Sep 2012 06:16 #3462

  • molenwal1
  • molenwal1's Avatar
  • Offline
  • Senior Member
  • Posts: 63
  • Thank you received: 17
  • Karma: 3
When adding a new record, the field information is direclty showed for text fields in the item view. See image, information showed with green backgroud. I think this should only be showed when the focus is in the field.

Molenwal1 Webdesign
www.molenwal1.nl
Last Edit: 10 Sep 2012 06:17 by molenwal1.
The administrator has disabled public write access.

Re: J-Cook V2.0: Field information showed immediately 14 Sep 2012 11:20 #3615

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
This is defined by the javascript jQuery validator.

There is also an issue there :
- The Arrow is missing and it is confusing
- When error, the arrow is still missing (on red box)

2 solutions :
- Ask the developper to fix that (I cannot do it for the moment)
- Bypass it and show the informations somewhere else in the field

TODO (second solution) :
- edit classes/jformfield.php
- Add a special treatment that receive the validatorMsg params, and design a HTML / CSS inside.

Placing it there, this call will be instancied for each fields
This is the reason why every single field type added in your component MUST be inherited from your class file (no direct use of native Joomla fields). Well, you can do what you want, but you will not be able to use the validators (JS) features.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.094 seconds

Get Started