Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

show and hide Password Value

Mohannad SabraDec 30 2016 — edited Dec 31 2016

Hi All,

Am using Jdev 12c.

am try to implement the technique of show and hide the value of the password of the password filed on clicking on image or link icon  i tried to do it using java script but it not working  it tried to change the inputtext type and tried to change the secret property but i got nothing i use those functions

  function changeInputText(evt) {

                  var iText = document.getElementById('it1');                

                 var value = iText.value;

                  if (iText.type == 'password') {

                      iText.type = 'text';

                   

                  }

                  else {

                      iText.type = 'password';

          

                  }

                  iText.value = value;

              }

              function changeInputText(evt) {

                  var iText = AdfPage.PAGE.findComponentByName('it1');

                  iText.setProperty("secret", false);

              }

can any one provide help with the solution Please or provide me with a better solution.

Thanks in advance.

This post has been answered by Timo Hahn on Dec 30 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 28 2017
Added on Dec 30 2016
4 comments
660 views