vdb@telenet.be Posted February 26, 2011 Report Share Posted February 26, 2011 I want to copy the company address to the deliveryaddress in a form(datapage).. For example this script in a html block at the end of the form.. document.getElementById("authfield:CompanyZipCode").name = CompanyZip; document.getElementById("EditRecordDeliveryAddressZipCode").name = CompanyZip; thanx for info Bart Quote Link to comment Share on other sites More sharing options...
0 ChrisJ Posted March 1, 2011 Report Share Posted March 1, 2011 So, what's the problem? This script does not work? Or you just share the script? Quote Link to comment Share on other sites More sharing options...
0 vdb@telenet.be Posted March 1, 2011 Author Report Share Posted March 1, 2011 the script does'nt work.. Bart Quote Link to comment Share on other sites More sharing options...
0 ChrisJ Posted March 3, 2011 Report Share Posted March 3, 2011 The one option is to use the 'Hidden' form element for the deliveryaddress. You can setup to use authenticated field as value for your field. See picture. Quote Link to comment Share on other sites More sharing options...
0 ChrisJ Posted March 3, 2011 Report Share Posted March 3, 2011 Another option is to use Virtual field. This is appropriate if you need to have this visible for user. Add Virtual field onto your web form, add Hidden form element and authenticated value (the same setting as on picture above). Then you can get this virtual value by id and assign to your field: var temp = document.getElementById("cbParamVirtual1").value; document.getElementById("EditRecordDeliveryAddressZipCode").value = temp; I haven't checked this script, but think it should work. Quote Link to comment Share on other sites More sharing options...
Question
vdb@telenet.be
I want to copy the company address to the deliveryaddress in a form(datapage)..
For example this script in a html block at the end of the form..
document.getElementById("authfield:CompanyZipCode").name = CompanyZip;
document.getElementById("EditRecordDeliveryAddressZipCode").name = CompanyZip;
thanx for info
Bart
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.