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

Modify the footer with java-script

Not applicable
Hi,



Im' trying to modify the content of the footer in the master-page using java-script. So I put in the initialize event of the footer code to add "!" after a text field (with plenty of space left) but it doesn't do anything. The code is example.rawValue = example.rawValue + "!";

This code works fine in the rest of the document, but it doesn't seem to work in the master-page.

Could somebody tell me what I'm doing wrong?



Thanks in advance!



Gert
3 Replies
pguerett
Level 10
Level 10
The access to the masterpage objects is not in the same scope as where the script is running so you must path to it starting from the root:



so.... form1.pageSet.Page1.example.rawValue = form1.pageSet.Page1.example.rawValue + "!";



where form1 is the root node of your form (look in the hierarchy view), pageSet indicates the objects in the Master Pages, Page1 is the 1st Page name in the Master Pages and exampel is the path to th erest of the object.



Make sense?
Not applicable
No,



It makes no difference. I had already from the beginning the suggestion rawValue after I put a dot after the namefield so the field is effectively known where I put the scripting!

Any other suggestions???



Gert
pguerett
Level 10
Level 10
Can you post the form to livecycle8@gmail.com and I will have a look.