[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


jquery remote validation

Posted on 2014-08-22
Medium Priority
Last Modified: 2014-09-16
I am trying to validate the form using jquery remote validation. So the idea is I need to validate the field and check if the field is not already in the database. I got the remote call and it returns false but the form is still not submitting

<cfsavecontent variable="customRules">
       onkeyup: false,
   onfocusout: false,
 rules: {
      required: true,
      remote: {
        url: "index.cfm&returnformat=json",
        type: "post",
        data:{'Text':function(){return $('#Text').val()},'ID':function(){return $('#ID').val()}}
         Text:{remote: "Item Text is already in use." }

Question by:erikTsomik
1 Comment
LVL 43

Accepted Solution

Rob earned 1500 total points
ID: 40279993
This looks more like ColdFusion than jQuery

Can you post all your jQuery code as you're missing the $(document).ready(function() {});

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses
Course of the Month19 days, 12 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question