Expand my Community achievements bar.

SOLVED

Copying address details with "As Above" check box

Avatar

Level 3

When "As Above" check box checked all address details above will be copied to Postal Address. How can I do that?

http://teomanefendi.fileave.com/Cozumpark/asabove.jpg

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

You will need script in the click event of the checkbox and in the exit event of the fields in the Residential Address.

There is a sample here: https://acrobat.com/#d=y-nnwhzjdB8B8syocURC1w

Hope that helps,

Niall

Assure Dynamics

View solution in original post

8 Replies

Avatar

Correct answer by
Level 10

Hi,

You will need script in the click event of the checkbox and in the exit event of the fields in the Residential Address.

There is a sample here: https://acrobat.com/#d=y-nnwhzjdB8B8syocURC1w

Hope that helps,

Niall

Assure Dynamics

Avatar

Level 3

Thanks very much Niall it worked

Avatar

Level 3

I just noticed something wrong with this as you cannot fill up postal address alone. Datas keep dissapearing.

Avatar

Level 10

My bad!

When I copied the fields down I didn't delete the script in the exit event of the Postal Code field.

If you delete the script in the exit event of the Postal Code in the Residential block, it should work okay. I can't seem to upload to acrobat.com at the moment (won't get past the virus scan). I will try and upload again tomorrow.

Niall

Avatar

Level 3

Hi Niall,

Thanks for the file but problem still there. First fill up postal address and start filling up residential address. You will see postal address still disapearing.

Avatar

Level 10

Hi,

In the original form there was an else statement that reset the values of the postal address block to null if the checkbox was deselected.

I have commented this out, so that these fields maintain their values. I hope this is closer to what you are looking for.

Here is the updated file:

https://acrobat.com/#d=xlp1fdqbrseULbRJpw6u9g

Hope that helps,

Niall

Assure Dynamics