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