Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 631
  • Last Modified:

Using AJAX or JavaScript to create a disclaimer popup

I have a modalpopup that the user enters in information for his request.  Once he has filled out the form, I want a disclaimer to popup before it submits the form.  I need the popup to have an 'I Agree' checkbox that disables the OK button until 'I Agree' is checked.  I'm open to any ideas.  I can post some code if needed.
0
gfedz
Asked:
gfedz
  • 3
  • 2
1 Solution
 
Tyler LaczkoCommented:
in your <form> tag put onSubmit="checkForm()"

checkForm is a js function that return true if clicked ok, false if clicks cancel

0
 
Tyler LaczkoCommented:
** that is how i do it with my web development. P.S. checkForm() is a function that you need to write.
0
 
gfedzAuthor Commented:
How would I add a checkbox inside the messagebox?
0
 
Tyler LaczkoCommented:
Don't use a checkbox.

js has a function confirm()



i would do:

confirm("Confirm data entered.");

this will popup with an ok or cancel popup
0
 
gfedzAuthor Commented:
Wasn't really what I was looking for but does work.  I just went a different route.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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