liam_davison
I'm new here

How can I copy a page in a script

Jump to solution

Hello,

FirstSpirit 5.1.605.

I need to be able to copy an existing page in a script. Is there an API that allows me to copy a Page and all its sections and form data? Or will I need to create a new page and loop over all the sections, etc, recreating them in the new page?

I can't find a copy() or clone() or duplicate() method in either Page or IDProvider or StoreElement classes.

Many thanks,

Liam Davison

0 Kudos
1 Solution

Accepted Solutions
jan-tilo
I'm new here

Hi Liam,

try to use AccessUtil.copyStoreElement(T element, StoreElement parent);

Kind regards,

Jan Tilo

View solution in original post

0 Kudos
1 Reply
jan-tilo
I'm new here

Hi Liam,

try to use AccessUtil.copyStoreElement(T element, StoreElement parent);

Kind regards,

Jan Tilo

0 Kudos