How to change a text-Field on the MasterPage

Avatar

Avatar

dh1sbg-1

Avatar

dh1sbg-1

dh1sbg-1

22-08-2017

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

_Bruce_Robertson

MVP

Total Posts

(val/1000)?string[".0"]}K

Likes

268

Correct Answer

371

Avatar

_Bruce_Robertson

MVP

Total Posts

(val/1000)?string[".0"]}K

Likes

268

Correct Answer

371
_Bruce_Robertson
MVP

25-08-2017

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

Answers (1)

Answers (1)

Avatar

Avatar

dh1sbg-1

Avatar

dh1sbg-1

dh1sbg-1

23-08-2017

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