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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

How to change a text-Field on the MasterPage

dh1sbg-1
Level 1
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
_Bruce_Robertson
Correct answer by
Level 10
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
dh1sbg-1
Level 1
Level 1

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

_Bruce_Robertson
Correct answer by
Level 10
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