Getting the name of the master page being applied to the current page at runtime.

Avatar

Avatar

thabelo_whitney

Avatar

thabelo_whitney

thabelo_whitney

25-11-2016

Hi There,

I have 3 master pages that are going to be applied to 3 pages respectively. They all reference the same header fragments and footer fragment

I need to populate the data on the fragment, by overriding it according to the master page being applied to it.

Please also note that the first master page is being applied onto a dynamic form. The other two pages are then generated based on the  options selected in page 1.

The generation works fine.

However I cant seem to output the name of the applied master page, using java script. I also tried using

app.activedocuments etc. it returns empty for me, so i didn't continue the code further

Is there a way to output the name of the applied master page?

Somebody..Anybody out there, please help me

Accepted Solutions (0)

Answers (4)

Answers (4)

Avatar

Avatar

Szalam

Avatar

Szalam

Szalam

28-11-2016

Moving from The Lounge​ to a product-specific support forum.

Avatar

Avatar

thabelo_whitney

Avatar

thabelo_whitney

thabelo_whitney

27-11-2016

Yes, I am using Live Cycle Designer, Nancy i had a look at the link provided.

I am not struggling with setting up my master pages, for example in my pagination settings.

I just want to find a way to output the master page being applied to a  page, using java script, so that i can put constraints based on that.

@ John I am using the adobe live cycle designer

Avatar

Avatar

Nancy_OShea

Avatar

Nancy_OShea

Nancy_OShea

25-11-2016

Are you using LiveCycle Designer ES2?

Does this help you?

LiveCycle ES2 * Adobe LiveCycle Designer ES2

Avatar

Avatar

John_T_Smith

Avatar

John_T_Smith

John_T_Smith

25-11-2016

The Forum Lounge is not for technical help, please provide the name of the program you are using so your message may be moved to the correct program forum