Avatar

Level 6

Not sure if this is what you are loking to achive but this is what i did:

1. Created a subForm on the Master Page and named it "sub" (see in code below). I placed 3 text fields with the "sub" subform (Field1, Field2, and Field3) and gave it a flow of Western text. I moved and placed the subform at the top of the master page since you mentioned it was for a header.

2. Next, I renamed the default master page name  from (Master Page) to MP. Of course you can use whatever name you desire.

3. Next, I placed a check box on the body page to serve as the trigger to hide one of the fields within the "sub" subform. Note, I needed to copy the absolute-SOM path for the field I want to hide on the master page (MP). This was "form1.MP.Page1.sub.Field2".... NOTE: I included the ENTIRE path starting with form1. If you renamed this default, you must use whatver that name is.

Thus:

form1 = highest in hierarchy list

MP = Name of my master page

Page1 = Default name of subform within MP master page

sub = subform i created which is set to flow (Western)

Field2 = field i want to hide with check box on body page is checked

So the Formcalc code on the check box ended up as:

if ($ == 1)

then

form1.MP.Page1.sub.Field2.presence = "hidden"

elseif ($ <> 1)

then

form1.MP.Page1.sub.Field2.presence = "visible"

endif

Hope this helps!