Im making a website for a last mile delivery service.
The page has a form to sumbit the pick up and delivery request, the 2 first fields has to auto complete with the dataset info and one more field has to auto complete with a permanent value.
The problem is that when the “pick up and delivery” page loads, the auto complete fields take too long to load the information (sometimes even minutes).
Here is my code (the tags are in spanish):
Here is my code:
import wixLocation from 'wix-location';
$w.onReady(function () {
$w("#nombre").value =$w('#clientesDataset').getCurrentItem().nombre //
$w("#direccion").value =$w('#clientesDataset').getCurrentItem().direccion //
$w("#Fechayhora").value ="Today at 8PM EST"
$w('#cargarEnvio').onClick(function (){
wixLocation.to(wixLocation.url);
})
});
This is how the page looks (the last field goes hidden):
On the other hand, at “my account” page the information loads pretty fast (“Rodrigo”, “Demostenes 3532” and the phone number).
I would appreciate if somebody can help me to make de auto complete forms load faster.