Jump to content

Requiring Field at checkout?


techmistress

Recommended Posts

Hi All!

Hope someone can help..

I've added 3 new fields at step 5 of checkout (below comments section). I would like to make them required, but I'm not sure of the code. I tried the if empty code, but nothing happened. I don't need it to focus on the fields, but popup an alert message.

I know how to do a javascript field check, but I wasn't sure how to do it without an "onsubmit" function. The button on this page is "a href="java script:submitDoc('gateway');" with an image.

Thanks for any help!

Link to comment
Share on other sites

Anyone know yet? I guess it's the same question as "how do I make the comments box required". I tried looking through the forums everywhere and only saw an answer saying to look for a javascript - which I couldn't get to work because of the reason above...

Link to comment
Share on other sites

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.   Paste as plain text instead

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