on 07-20-2016 12:53 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.