Title: Match Field Input
Last modified: August 21, 2016

---

# Match Field Input

 *  [bill_8921](https://wordpress.org/support/users/bill_8921/)
 * (@bill_8921)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/match-field-input/)
 * I had asked this a while back and answer was provided, but I wasnt fully clear
   of it.
    I have been trying for over a month to get this work and have yet to.
 * Im trying to have two fields that match. Such as form when the user has to enter
   their password two times and they must match. Instead im just changing the field
   name.
 * Maybe im doing it wrong and entering the code in the wrong area. I was told to
   put JS in the html after area. Im doing so on the seconded field.
 * The two fields im trying to match are:
    phone and phone again
 * Code im using is:
 *     ```
       <script type="text/javascript">
           function isNumber(evt) {
               evt = (evt) ? evt : window.event;
               var charCode = (evt.which) ? evt.which : evt.keyCode;
               if (charCode > 31 && (charCode < 48 || charCode > 57)) {
                   return false;
               }
               return true;
           }
           function validateMe()
           {
           var phone = document.getElementById('field3_4').value;
           var phone_again = document.getElementById('field3_5').value;
           if(phone!=phone_again)
           {
           alert("Numbers are not same in both fields");
           return false;
           }
           else
           {
           alert("Yeah they match correctly!!");
           }
           }
           </script>
       ```
   
 * I have tried different codes and have yet to get anything to work.
    Am I adding
   it in the correct area? Do you have some basic code I can put in there to get
   it to work or is there a matching passwords field I can use and just edit. Really
   lost on how to get this to work correctly.
 * Thank you in advance for any help
 * [http://wordpress.org/plugins/si-contact-form/](http://wordpress.org/plugins/si-contact-form/)

Viewing 1 replies (of 1 total)

 *  [Mike Challis](https://wordpress.org/support/users/mikechallis/)
 * (@mikechallis)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/match-field-input/#post-4361094)
 * I do not have time to do any custom work,
    [Ken Carlson](https://wordpress.org/support/topic/match-field-input/?output_format=md)
   is usually available. He was a co-programmer for this plugin.

Viewing 1 replies (of 1 total)

The topic ‘Match Field Input’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/si-contact-form_dde2be.svg)
 * [Fast Secure Contact Form](https://wordpress.org/plugins/si-contact-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/si-contact-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/si-contact-form/)
 * [Active Topics](https://wordpress.org/support/plugin/si-contact-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/si-contact-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/si-contact-form/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mike Challis](https://wordpress.org/support/users/mikechallis/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/match-field-input/#post-4361094)
 * Status: not resolved