cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding field in master page

0 Kudos

Hello Team,

In a master page i am having a sub form with 5 lines(5 fields) to display the customer address.

My requirement is to hide 2nd and 3rd lines if there is no data and the 4th line needs to occupy 2nd line space without gap .

1. Sub form is in flowed layout

2. I have written form calci code in form ready, Client side

3. Also tried writing form calci code Layout ready, Client side


Code:        

if ( not HasValue($)) then

     $.presence = "hidden"

endif


But i couldn't achieve the requirement.

Please let me know how i can solve this issue?

Thanks in advance.

Regards,

Dorababu

Accepted Solutions (0)

Answers (2)

Answers (2)

prajeshdesai
Contributor
0 Kudos

First thing when you need to work with Master Page fields always use docReady event.

Try below,

1) SubForm Contect must be Flowed.

2) Use below FormCalc code on docReady event of bodypage or any control of bodypage.


xfa.resolveNode("#pageSet.Page1.Subform1.mstTextField5").presence = "hidden";

Where,

Page1 = master page name

Subform1 = subform name which in inside my master page

mstTextField5 = text field name which in inside my sub form

Hope this helps.

former_member531036
Participant
0 Kudos

Hi Dorababu,

I believe there are some events that don't work in the master page. Here is a link showing the events and how they all tie together: http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000752.html. You could try putting it in the Initialize event and see if that works.

Julie