cancel
Showing results for 
Search instead for 
Did you mean: 

Checkout - prefill values with javascript (JS injection)

Checkout - prefill values with javascript (JS injection)

Hello everyone,


I'm trying to figure out how to prefill some data in the checkout form through Tealium or another JS script injection solution (ex: for AB testing).


I have tried to copy html here but it always give me an error.


I can fill in fields with Javascript and I can see the value filled in but the form has not detected a value in the field and when I submitted the form, it highlight this field as if it was empty.


I have tried to simulate a click (click, focus, select) but it doesn't help either.


How could I update fields from the checkout with prefilled value and ensure they are taken into account by the usual verifications done on the page?


Thanks
Laurent