Expand my Community achievements bar.

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

View solution in original post

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