A
A
Alexander2016-07-21 13:59:26
JavaScript
Alexander, 2016-07-21 13:59:26

How to make the fields in the form not reset during the checkout procedure?

There is a custom template for the sale.order.ajax component. When changing the choice of delivery during the checkout procedure, all the buyer's data that he previously entered into the form is reset. I noticed that at this time there is an ajax request to the sale.order.ajax component, after receiving data from the JS server, the script simply resets all values ​​in the form fields.
Which JS method of the BX library should be used to set up a JS script so that it does not reset values ​​already in an already filled form, or what event in BX can be used for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2016-07-21
@Logic87

I won't tell you the exact answer. But you need to correctly stretch the layout into the components so that nothing like that gets lost. Maybe when the layout was introduced, the names in the inputs were erased ... You need to compare the template or even the component with the original if there were strong changes.

A
Alexey Emelyanov, 2016-07-21
@babarun

1. Check if this data is returned in json in ajax request when the delivery is changed.
2. If data is returned, then check the id of the inputs, they should be similar to id="soa-property-1"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question