Skip to main content
jarod527
Participant
June 20, 2020
Question

Missing Validation Password in the Forms Panel

  • June 20, 2020
  • 3 replies
  • 286 views

Hello. 

Where can I find the validation password in the Forms panel?

I am using Dreamweaver 20.2 version.

Please advise how to enable or create this functionality.

I am using this to validate the submitted password.

Thank you.

    This topic has been closed for replies.

    3 replies

    Nancy OShea
    Community Expert
    Community Expert
    June 21, 2020

    If what you desire is a pattern for checking the input, this will do what you want.  But this does not look up the database to ensure your password exists.  That's a separate function.

     

    Source = W3Resource

    <!doctype html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    <title>Check Password Input</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <style>
    li {
    list-style-type: none;
    font-size: 16pt
    }
    .mail {
    margin: 0 auto;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 400px;
    background: #d8f1f8;
    border: 1px soild silver
    }
    .mail h2 { margin-left: 2rem}
    
    input { font-size: 1.5rem}
    
    input:focus, textarea:focus { background-color: #ffffe0 }
    
    input submit { font-size: 1rem}
    </style>
    </head>
    
    <body onload="document.form1.text1.focus()">
    <div class="mail">
    <h2>Input Password and Submit [6 to 20 characters which contain at least one numeric digit, one uppercase and one lowercase letter]</h2>
    <form name="form1" action="#">
    <ul>
    <li>
    <input type="text" name="text1" required>
    </li>
    <li>&nbsp;</li>
    <li class="submit">
    <input type="submit" name="submit" value="Submit" onclick="CheckPassword(document.form1.text1)" />
    </li>
    <li>&nbsp;</li>
    </ul>
    </form>
    </div>
    <script>
    function CheckPassword(inputtxt) 
    { 
    var passw = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,20}$/;
    if(inputtxt.value.match(passw)) 
    { 
    alert('Correct, try another...')
    return true;
    }
    else
    { 
    alert('Wrong...!')
    return false;
    }
    } 
    </script>
    </body>
    </html>
    

     

     

     

    Nancy O'Shea— Product User & Community Expert
    Legend
    June 21, 2020

    No form validation exists as default in Dreamweaver, you have to write some code to validate form fields unless you are just relying on the html5 form validation attributes, which are there purely for eye candy and not worth the space they written in.......you should always validate input fields using server-side validation not client side validation.

     

    Tell us what you are doing and someone might be able to offer more advice, other than that you can deploy a 3rd party extension or use a different web-editor, as has already been suggested.

    BenPleysier
    Community Expert
    Community Expert
    June 21, 2020

    Not sure where you get the impression that there is a password validation module in Dreamweaver 20.2. I am asking this because there is no such functionality in Dreamweaver unless you choose to purchase an extension from either Webassist or from DMXzone.

     

    Alternatively, you could choose another IDE that does include the functionality

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!