Is there a way to lock a text box say at the bottom of the page and still have the page flowable with the other objects. I'm trying to have a dynamic txt box (its not static so I can't place it on the master page, or can I?) stay at the top and bottom of all pages. This text is controlled by a drop down at the beginning of the form. What can I do? Thanks.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
Yes, you can place the textfield on the Master Page and still access/set its rawValue from the design pages.
Because you have a flowed layout, I would recommend that you move the bottom content edge up on the Master Page, so that the textfield is below the content area.
When accessing an object on the Master Page you need to resolve the node, typically:
xfa.resolveNode("#pageSet.Page1.TextField1").rawValue = DropDown1.rawValue;
There is a trick in LC Designer where you can press and hold Control when you click on an object, to insert a reference into the script:
Hope that helps,
Niall
Views
Replies
Total Likes
Hi,
Yes, you can place the textfield on the Master Page and still access/set its rawValue from the design pages.
Because you have a flowed layout, I would recommend that you move the bottom content edge up on the Master Page, so that the textfield is below the content area.
When accessing an object on the Master Page you need to resolve the node, typically:
xfa.resolveNode("#pageSet.Page1.TextField1").rawValue = DropDown1.rawValue;
There is a trick in LC Designer where you can press and hold Control when you click on an object, to insert a reference into the script:
Hope that helps,
Niall
Views
Replies
Total Likes
Perfect, thanks so much!! This will make things so much simpler now.
Views
Replies
Total Likes
wait I just noticed that the drop down only works on the first page. How would I make it so the drop down selection changes the header and footer on all pages?? And one more question...sorry, what about a radio button of yes and no. If yes were to be clicked then the header and footer changes. So basically if yes is clicked from the RB list then the drop down is not used but if the RB list is no then the drop down would be used.
Views
Replies
Total Likes
Hi,
If the dropdown is on the Master Page, then select it and in the Object > Binding palette change the binding to global. This was whatever is selected, will automatically appear on all pages.
Not sure what you are after with the radio buttons. You can change the presence of an object depending on which radio button is clicked. The trick is to place the script in the click event of the radio button exclusion group. You would also need to check the specified values of the radio buttons, in the Object > Binding palette. Let's say Yes=1
if (this.rawValue == 1)
{
dropdown1.presence = "invisible";
}
else
{
dropdown1.presence = "visible";
}
You would need to change the object references to suit your form.
Niall
Views
Replies
Total Likes
Views
Likes
Replies