You are viewing limited content. For full access, please sign in.

Question

Question

You can't leave the form blank.

asked on July 26, 2021

How do you fix this error in Weblink?  Also I have the script so enter default to submit but that isn't working either.

0 0

Answer

SELECTED ANSWER
replied on July 26, 2021

Added the script :

<script type="text/javascript">
    $('#form1').keypress(function(e){
        if (e.keyCode == 10 || e.keyCode == 13) 
           {
         e.preventDefault();
         $('input[type="submit"]').click();
     }
    });
</script>

and I had to make sure the Submit button was the first button on the form.

1 0

Replies

replied on April 22, 2022

What vesion of Web Link is this for?  Version 10? Are you leaving values empty on that custom search form?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.