Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[J5] Show/Hide password Javascript does not work for dynamically added form fields #43240

Open
PhocaCz opened this issue Apr 9, 2024 · 0 comments

Comments

@PhocaCz
Copy link
Contributor

PhocaCz commented Apr 9, 2024

Steps to reproduce the issue

Add form field - password type to some subform - for test only, e.g. in :

plugins/schemaorg/book/forms/schemaorg.xml

<field
			name="password"
			type="password"
			label="Dynamically added password field"
			required="true"
			autocomplete="new-password"
			class="validate-password"
			field="password1"
			size="30"
			validate="password"
			strengthmeter="true"
			rules="true"
			force="on"
			filter="raw"
		/>

and test to click on "eye" button to show/hide the password input text.

password-joomla-core

Expected result

The password should be displayed/hidden based on the click on the button

Actual result

The displaying/hiding does not work.

System information (as much as possible)

Joomla 5.0.2

Additional comments

Maybe the media/system/js/fields/passwordview.js should be written the same way like media/system/js/showon.js (to have initialization, etc. so it can work in dynamically created forms too.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants