View Single Post
  #9  
Old 01-12-2013, 06:34 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Make Custom Text Field Required???

Ah Robert, don't get frustrated. If it were easy it would be limited. For it to be infinitely customizable and adaptable, it has to have a certain level of learning curve. Why they don't put a checkbox to make it required? Well this way gives you so many more options. For instance, you have control over the way it handles their mistake, you can alert specific text that explains it exactly. I am to blame for guiding you wrong, if anything.

For instance, if Photoshop came pre-loaded with a 1000 ready made pictures, but you could not paint your own, well it wouldn't be worth much would it?

I haven't tested the code I wrote above, I am trying to teach you the basics of Javascript. I'll have another look at it if you can't crack it. But I'd like it if you tested it yourself.

Read through all of my instructions again. Try getting the alert to show up with one of my simple examples. Deconstruct it until you can determine what I did wrong. And if you can't get it I'll stick with you until it is resolved.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote