Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Moving objects between pages (or subform containers)

Avatar

Level 2

Hi,

Using scripting, how do you copy object (say subform or list box etc…) from one page to another page?

(Similarly, what's the script that enable you moving one object from a container subform to another subform container?)

Thanks,

Yasser

3 Replies

Avatar

Level 10

Hi Yasser,

I don't think you can achieve what you are looking for.

Using the instanceManager you can add new instances of a subform (which might for example contain the list object). However this will place the new instance directly underneath the previous one.

You can change the pagination settings that may place it on a new page, but this will probably affect other objects on the page.

Maybe one option would be to repeat the page itself. (???)

Good luck,

Niall

Avatar

Level 2

Hi Naill,

Yes, your answer is very logical due the way the XML nodes are structured in the XFA... I think you need to change the XML at run time to do such movments/creations of objects.

Thanks

BR,

Yasser

Avatar

Level 10

Hi Yasser,

You can move certain objects around (like buttons) - see here: http://assure.ly/hXsh10.

But creating them in random positions is probably not feasible.

Good luck,

Niall