Jump to content

clear the new password field and Confirmation password field in the single record update data page


Recommended Posts

I have a single record update data page . (See example) The user must change his password here . My problem is that automatically  already ******** appears in the fields .

( By creating in the submitForm I do not use the password field , so the password field is blank !!  or not?? ) .

And I don't want to use a " Require current password validation" .

Is there a way to clear the new password field and Confirmation password field in the single record update data page. If do that manually it works fine .

 

 

 

the way how it is now.

wrong.jpg

as it should be:

Good.jpg

Link to post
Share on other sites

Hello peterhanse,

Quote

By creating in the submitForm I do not use the password field , so the password field is blank !!  or not??

Password cannot be blank. If you didn't write any value when add new row, system will generate random password.

Quote

Is there a way to clear the new password field and Confirmation password field in the single record update data page

Sure. Please add Header & Footer to your Update DataPage, and place code below to DataPage footer.

Please pay your attention, that if user already did change own password, she open Update DataPage second time, and password fields will cleaned on page's load, it is required enter password every time when data will changed, Otherwise password will be override with random value.   

<script type="text/javascript">
	var pwd = document.getElementById('EditRecordPwd'); //place real ID here
	if(pwd){ pwd.value = ''; }

	var pwdc = document.getElementById('EditRecordPwd@Confirm'); //place real ID here, but keep @Confirm suffix 
	if(pwdc){ pwdc.value = ''; }
</script>
Quote

I don't want to use a " Require current password validation" .

I'm not sure which kind of issue you have with it. Please edit your DataPage, go to "Fields configuration", select you password field(s) and uncheck "Require current password validation".

Thanks

Link to post
Share on other sites

Thank you kRv,
it works perfectly , I use the data page only 1 time a user to " Transfer" the account to the new user . That's what I meant by I do not want to use a "Require current password validation" .because the user does not know the current password. And if you use "Require current password validation" the fields new and confirm password are blank but you have to know the old password.

regards, peter

Link to post
Share on other sites
  • 4 months later...

I also wanted a script to clear the automatic password, but on reading this post, basically my users HAVE TO enter or change their password every time they update a record or a random password will be entered in its place?  That would be a nightmare.  What if I just remove the password field from the edit form altogether?  Will the original password be left intact?

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...