PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Dynamic validation

  1. cuptech
    Member

    Hi, I would like dynamically verify the value from text input with jquery and ajax. If i found the same text in database, field should throw an error. But I dont know if it is possible in gravity form.

    jQuery code

    $('#input_1_3').blur(function() {
            $.ajax({
                url: '/wp-admin/admin-ajax.php',
                type: 'post',
                data: {
                  temp: document.getElementById('input_1_3').value,
                  action: 'checkName'
                },
                success: function(ret) {
                  console.log('Check name: '+ret);
                },
                dataType: 'html'
              });
        });
    )

    Can you help me??

    Thanks cuptech

    Posted 12 years ago on Thursday March 15, 2012 | Permalink