Announcement

Collapse
No announcement yet.

How to clear Input after entered text.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to clear Input after entered text.

    Hi All
    I have an Input for using as password and works great.
    When I type my password correctly it takes me to page 2. If I go back to page 1, the Input shows my password.
    How can I clear my password I inputted when it takes me to page 2
    I want to be able to type my password every time I go to Page 2

    I have done a search here and tried a few examples but don’t work.

  • #2
    I have done a quick fix and works.
    I have 4 characters to my password and added to On Show event like this.

    PHP Code:
    Input.Delete("Input1");
    Input.Delete("Input1");
    Input.Delete("Input1");
    Input.Delete("Input1"); 
    Because I have 4 character password, each "Input Delete" Deletes 1.
    If you have a better solution please respond.

    Comment


    • #3
      you can use Input.SetText("Input1", "");

      Comment


      • #4
        There are better ways to go about adding a password input to your project. Not to say you can't use the way you're doing (use any way your little heart desires). But there are better ways.

        Attached is an example similar to what you're already trying to achieve. The password for this example is "test".
        Attached Files

        Comment


        • #5
          //Edit

          Or if wishing to create a LogOn scenario, where the user sets up their own username/password, you could for example, do it via an encrypted ini-file (or encrypted registry-key). Attached is an example, using an encrypted ini-file.

          And you could also follow this attached example (HiveLogon.apz) which is the best I've seen so far. It was provided by Sakuya some time ago, and is my personal favourite. All depends on exactly what it is you're trying to achieve. Hope these help.
          Attached Files

          Comment


          • #6
            And lastly, if all that just complicates things for you, then here's a very basic example that achieves exactly what you describe in your original request (In retrospect, it's probably best you start with this one - and then work up from there):
            Attached Files

            Comment


            • #7
              Thank you for the Examples much appreciated. I will be using your Clearing Password Input.

              Comment


              • #8
                Originally posted by telco View Post
                you can use Input.SetText("Input1", "");
                telco I also tried your code and worked also.
                Thank you

                Comment

                Working...
                X