Jump to content
  • 0
Sign in to follow this  
vdb@telenet.be

howto copy autfield to a formfield(element)?

Question

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

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...