Hi,
I have no experience with Javascript but have been trying to include a delay between events.
First i obtain an populate a field with an ip address then the form is automatically submitted.
The IP address is taking too long to populate so the form is submittig without the IP address value.
var ipInputID = 'fieldxxxxxxxxx';
TB.render('component_5', function(data) {
$.get("https://api.ipify.org", function(data) {
$('#' + ipInputID)
.val(data)
.change();
});
});
TB.render('component_5',function(data){
data.ele.find($($('.af-form-submit')[1])).click();
});
Not sure how to include this.
setTimeout(function(){
},10000);
,3000);