Jump to content

Form submit button


Renegade85

Recommended Posts

Hi, just having a problem with a form i'm currently working on. I have the submit button disabled unless all input is valid.

 

The problem is that when all the input is valid, the user still has to click out of the form field to enable the button which irritates the majority of users.

 

I'm currently using the onChange event for checking individual fields are valid and also checking the rest by calling the appropriate validation methods from within all the other validation methods.

 

Is there a javascript event i'm missing here that would be a better idea or what would be the best way to code the form ?

 

Would it be better just to leave the submit button enabled and check all fields there in an if else statement?

Link to comment
Share on other sites

I was thinking on doing that yeah but it would result in the same problem where the user has to click away from the field for it to appear  :(

 

Thinking I may just have to leave the button enabled and have an onClick event :/ It'll be the only button on the site that does that though so it'll annoy me lol

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.