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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

How to change a text-Field on the MasterPage

Avatar

Level 1

I need to change a text-field on the masterpage:

head.png

Formular1.#pageSet[0].Seite1.Schaltfläche1::click - (JavaScript, client)

// what is wrong with this code?

xfa.resolveNode("TestForm.#pageSet.Seite1.FP_Formular").rawValue="test"; //does not work

Formular1.Masterseite.Seite1.FP_Formular.rawValue="Test"; //does not work either

What do I do wrong?

Thanks for any help

Bruno

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Bruno.

I think you will need something like;

xfa.resolveNode("Formular1.#pageSet.Seite1.FP_Formular").rawValue="test";

I am not sure where "TestForm" came from in your code snippet, but is probably your problem.

Regards

Bruce

2 Replies

Avatar

Level 1

My current solution is a hidden field in the body and the same name as in the MasterPage, both set to global

Avatar

Correct answer by
Level 10

Hi Bruno.

I think you will need something like;

xfa.resolveNode("Formular1.#pageSet.Seite1.FP_Formular").rawValue="test";

I am not sure where "TestForm" came from in your code snippet, but is probably your problem.

Regards

Bruce