Hi,
Dmitrijs found an issue: in payment method we added a field with type "password".
There is an eye icon, but if we click on it, no text appears. Password is still hidden.
Looks like a Phoca Cart issue.
Phoca Cart 4.0.10
Joomla 4.4.3
Password field doesn't show text if show icon is clicked on
- sulpher
- Phoca Professional
- Posts: 107
- Joined: 28 Feb 2017, 09:45
- sulpher
- Phoca Professional
- Posts: 107
- Joined: 28 Feb 2017, 09:45
Re: Password field doesn't show text if show icon is clicked on
Also showon doesn't working too.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Password field doesn't show text if show icon is clicked on
Hi, thank your for the info, maybe this can be related to some functions which needed to be written when Joomla core removed tooltips. Where exactly does not work the showon? In tab for payment plugin parameter, this can be maybe caused by dynamically loaded form, not sure if the Joomla core feature for showon can work with dinamically form items. If not, maybe it will be not possible to somehow correct this core function and the showon parameter in plugin parameters will have to be omitted
Jan
Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Password field doesn't show text if show icon is clicked on
Confirmed, both showon and display/hide password Javascripts (e.g. media/system/js/fields/passwordview.js) are not able to work with dynamically loaded forms
In the AJAX which loads the parameters, there is new calling of showon script, maybe it changed in newest Joomla again (as it worked previously for showon)
In the AJAX which loads the parameters, there is new calling of showon script, maybe it changed in newest Joomla again (as it worked previously for showon)
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Password field doesn't show text if show icon is clicked on
BTW, testing now, the showon works OK there.
The problem with password is, the core password function in Joomla is wrongly written as it does not count with dynamically added form fields. This is different to showon which has initialize function and can be reinitialized after loading new dynamic items (which is even not right as it does not count with dynamically items from start but as developer you can somehow correct it).
And it even seems that this does not work in subforms so we need to write some bug report for Joomla core.
The problem with password is, the core password function in Joomla is wrongly written as it does not count with dynamically added form fields. This is different to showon which has initialize function and can be reinitialized after loading new dynamic items (which is even not right as it does not count with dynamically items from start but as developer you can somehow correct it).
And it even seems that this does not work in subforms so we need to write some bug report for Joomla core.
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Password field doesn't show text if show icon is clicked on
If you find Phoca extensions useful, please support the project
- sulpher
- Phoca Professional
- Posts: 107
- Joined: 28 Feb 2017, 09:45
Re: Password field doesn't show text if show icon is clicked on
Ok, it is nice you've reproduced the issue and already reported the bug to Joomla's Github project.
I hope this task will be resolved later.
I hope this task will be resolved later.