Here’s the situation:
I have a detail page that has a page include on it which includes additional information about that record. The reason for this is the page include has custom fields on the object that are not part of the main managed package. The page include allows the use of the same main page and ability to pull custom fields not on the main detail page.
When I go to clone the main page (URL param clone=1), the main page info is cloned but the page include’s fields are not cloned.
Here’s my objective:
I would like to use the clone=1 parameter to create a new cloned record that includes cloning of the custom fields in the page include.
What I’ve tried:
I’ve used JavaScript on the main page to modify the string query of the page include to have the “clone=1” parameter when the main page has that parameter added. I can also save the page include model using JS at the same time I am saving the main page’s model. This creates two cloned records. One includes changes to the main page but no page include data, and the other does the opposite. I suspect even though the objects are the same, because the model names are different cloning is creating two different records.
Is there anyway to clone the page include data onto the same record that the main detail page creates on clone?
Question
Cloning data inside a page include

Translate
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.