• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 250
  • Last Modified:

Need to make PayPal optional field mandatory

I am using PayPal's optional fields (os1) and need to check to make sure it's the correct length and is valid.  If not, I want to display a pop-up message as to what's wrong.

How do I do that?  (sorry for the lame question, but I'm lost on this one!).
0
rmmarsh
Asked:
rmmarsh
  • 3
1 Solution
 
strickddCommented:
You can use javascript and do document.getElementById("OSid") to get the value of the field and you can wire up an OnSubmit action to intercept the post of the form.
0
 
rmmarshAuthor Commented:
Is it possible you can give me a sample of the code to do this?  I'm not very versed in JavaScript...
0
 
rmmarshAuthor Commented:
This is how it's done... thanks anyway...

http://capleswebdev.com/paypal/sample6.php
0
 
rmmarshAuthor Commented:
Nobody else had an answer with an example...
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now