This topic is locked
[SOLVED]

 Copy values from billing to shipping form

2/24/2011 1:41:21 PM
ASPRunnerPro General questions
M
mac author

Hi,
i need to copy form fields values from billing form to shipping form.
I'm using a tabbed interface (one tab for billing and one for shipping info).
I need a button to copy inserted values in the billing form to the shipping form.
Seems a simple thing but today I was not able to resolve the problem.
Any help is appreciated.

Sergey Kornilov admin 2/24/2011

Looks like a job for Javascript API. Put this code to BeforeClient event.

var ctrl1 = Runner.getControl(pageid, 'BillingAddress');

var ctrl2 = Runner.getControl(pageid, 'ShippingAddress');

ctrl2.setValue(ctrl1.getValue());
M
mac author 2/25/2011



Looks like a job for Javascript API. Put this code to BeforeClient event.

var ctrl1 = Runner.getControl(pageid, 'BillingAddress');

var ctrl2 = Runner.getControl(pageid, 'ShippingAddress');

ctrl2.setValue(ctrl1.getValue());



Great it works!
But i have troubles using it on dropdown list. Change are not visible. Any thought?
Thanks again

Sergey Kornilov admin 2/28/2011

I would suggest to post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.

M
mac author 3/8/2011



I would suggest to post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.


Sorry, my mistake. Javascript works great!