In XML file we have a tag called "validationtext".
This element is not useful because it is not translatable.
data-validation-text="Please fill Title"
data-validation-text="TITLE_FILL_ELEMENT"
In the .ini file :
TITLE_FILL_ELEMENT="Please fill Title"
Please fix this file : layouts\joomla\form\field\text.php
At line : 98
!empty($validationtext) ? 'data-validation-text="' . $validationtext . '"' : '',
Change this line to this :
!empty($validationtext) ? 'data-validation-text="' . Text::_($validationtext) . '"' : '',
Thanks.
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
The data-validation-text
is used in the validation script (client side) in order devs to have the option to set a custom invalid state message PER FIELD:
FWIW the platform itself with the newest native formvalidation supports a similar thing (although the attributes reflect the invalid state)
Labels |
Added:
bug
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-04-02 19:22:07 |
Closed_By | ⇒ | Hackwar |
@dgrammatiko Hopefully you can provide additional information on this attribute. Thanks.
f0ba73a#diff-7195eb75172e6bd0b450db0f22c89a8a24d8e65afd2d06df17d83e7c278d4d0bR74