Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Duplicating a field

Avatar

Level 3

Two Questions:

1. I have a two page form, where the user enters a name. I want the name to also show up on the second form on the bottom (like a footnote), so that the two pages are not miss filed. How do you create a field (possible text) that when you enter a name in the first page, it automatically filles in on the second page?

2. If I enter a persons DOB, how can I have it calculate his age and display it in another firld (numeric)?

Thanks

This forum is the best!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Answer for #1:

two of several ways :

- Change the binding value from NORMAL to GLOBAL 

     OR

- write a calculate script to copy the value (text2.rawValue=txt2.rawValue)

Nith

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Answer for #1:

two of several ways :

- Change the binding value from NORMAL to GLOBAL 

     OR

- write a calculate script to copy the value (text2.rawValue=txt2.rawValue)

Nith

Avatar

Level 3

Thanks - that worked. I used the global binding.

 

Cheers

Shai

Avatar

Former Community Member

To do the age part you will need to do Date calculations ....here is an example that shows how to deal with dates. It calculates the number of days between two dates ...your calculation will be a little different but there are a lot of the same techbiques required in both.

Paul