Question
SMS Management & Technology
AU
Last activity: 16 Oct 2018 12:03 EDT
How to disable autofill for a particular input field
Hi,
On iPad device we have Autofill enabled for Safari browser.
As part of application functionality, change password is one of the features for users. When this change password action is initiated by user, current password filed is being pre-populated with user's password. Is there a way I can disable this at section/harness level in Pega?
Please let me know any solutions for this.
Thanks & regards
Murali
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
Hi Murali,
Unfortunately I don't think this is possible in PRPC, to get around this you may need to go the route of creating a custom non auto-generated control. That being said, from looking around online it looks like there might not be an easy way of doing this, it looks like adding autocomplete="off" on the input tag used to give you the behavior but might not work anymore. You may need to do something rather custom in JavaScript: https://stackoverflow.com/questions/32369/disable-browser-save-password-functionality
Regards,
Meghan
Pegasystems Inc.
IN
This needs to be tackled from browser level and not from PRPC level.
I guess you can do it like this : Safari-Preferences- Auto fill : Turn it off or on as per your need.
SMS Management & Technology
AU
Hello Santanu,
Thanks for your response. I understand that by disabling auto fill on Safari preferences of iPad this could be resolved. But this also means that it gets disabled for all websites accessed on Safari. I would like to know is there a way to disable auto-fill for a specific harness/section in PRPC.
One solution I have is to use a new property with a name other than "password". But would like to know any other ways of achieving it.
Regards,
Murali
-
vijay saidu
SMS Management & Technology
AU
Found a solution on net: Trick the auto fill with a hidden element: https://www.odoo.com/forum/help-1/question/disable-autofill-on-password-field-110014 :)
Hope this will help someone facing similar issue.
But would be happy to know from others if there is a way to configure this (turning off auto fill for a section/harness) within Pega.
Regards
Murali
SMS Management & Technology
AU
This trick is not working in PRPC :(
I came across DisableAutoComplete DSS/When rule that is being used in OOTB login pages (Web-Login) to turn off auto complete, but these are custom HTML rules. Is there a way to configure this in auto generated section/harness rules as well?
Thanks
Murali
Accepted Solution
Pegasystems Inc.
US
Hi Murali,
Unfortunately I don't think this is possible in PRPC, to get around this you may need to go the route of creating a custom non auto-generated control. That being said, from looking around online it looks like there might not be an easy way of doing this, it looks like adding autocomplete="off" on the input tag used to give you the behavior but might not work anymore. You may need to do something rather custom in JavaScript: https://stackoverflow.com/questions/32369/disable-browser-save-password-functionality
Regards,
Meghan
SMS Management & Technology
AU
Thanks Meghan for the clarification.
Regards
Murali