Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

not able to create subform on second page of design view

Avatar

Level 2

Hi all,

I have two pages in design view, first page has static fields , but the second page has to be dynamic. I am not able to create a subform on second page of design view. It always creates the new subform on page1. I can't even drag the newly created subform from page1 to page2. I want page 2 to allow continuation of data flow to next page dynamically.

Please help me out with positive solution as i am new at this.

Thanks,

Saurabh.

7 Replies

Avatar

Former Community Member

Hi Sourabh,

Consdering the following two scenarios...

1) To add a subform to the Page2 that has no relation with the content on Page1, then simply go to Hierarchy Palette, Select Page 2 - > Insert Subform. (I assume that you are not adding the Subform to Page1 instead)..

.

2) If you want Page2 to appear when the content of Page1 is full, then: (in this case, Page1 is set to Flowed)

     a) Make sure your Page1 is full so that anything added further will automatically go the next page.

     b) If your Page1 content is not full and you still want the further added sections flowing to the next page, make sure you specify/adjust the bottom margin of the last section in Page1 so that the newly added section flows to Page2.

Please Note : For both a and b, make sure you select "Allow Page Breaks" option of Page1

.

If the issue is still not resolved, pls mail your form at alcdtrainer@gmail.com

Thanks,

Avatar

Level 2

Page1 is static, where as the contents of page 2 is dynamic and i tried putting the dynamic content inside a subform, but the remaining data from backend is not flowing to new page automatically. I am able to fetch data on page 2 but the remaining data is not shown on new page (dynamic Page 3). What shall i do to fetch all data dynamically.

Avatar

Level 2

I was able to dynamically generate new page on run time.Page 2 itself was a subform which i later changed its content to flowed. Thanks all for your inputs.

Now i want to display a page or an object depending on the output of a single field.

Say after generating dynamic pages from a single field, i want to show an object or an image after the ending of that fields data. How can i achieve this?

Avatar

Former Community Member

Place the new object as per desired and make this object/field hidden by default. You can do this by selecting the Presence option of this field to "Hidden (Exclude from layout)". Now add the following event on the initialize event of the field to make it visible:

fieldpath.presence = "visible";

Hope this helps!

Avatar

Level 2

I was able to add image to the second page. Now i am trying to make the default or first page in design view flowed but its contents gets disturbed or unaligned. There is only one field on page1 which is an internal table and i want its data to flow on to next page in runtime. Please suggest me some way to achieve the desired result.

Avatar

Former Community Member

A page/subform set to Flow Content will make all the elements aligned one after the after either from top to bottom / left to right / right to left based on the Flow Direction selected (Western Text, Right to Left, Left to Right). Please understand the working behavior of Flow and Position Contents before you start designing a form.

Mail me your form at alcdtrainer@gmail.com