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
https://forums.phpfreaks.com/topic/194228-form-submit-button/
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
https://forums.phpfreaks.com/topic/194228-form-submit-button/#findComment-1021894
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.