- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Thanks …….
I must be have a “dumb” day (let’s not debate the time factor).
Before I forget, I am using LiveCycle Designer 8.0
Not mater what I try I am not able to get this to work. This is what I did . I would appreciate any and all comments
I created a new form with 2 text fields, 1 checkbox
Then created a new sub form called manager.
In the sub form I created 2 text fields and set
Set the manager sub form to hidden
Saved form as dynamic
Added the java script (language=javascript)to the checkbox and changed the code to
“manager.presence = "visible"”
And
manager.presence = "hidden"
When I brought the form up in Acrobat 9 and clicked the checkbox…. Nothing happened.
Next
Recreated the form without the sub form and changed the java script as follows
if
( this.rawValue == 1 )
{
TextField3.presence = "visible"
}
else
{
TextField3.presence = "hidden"
= "";
}
Did not work.
Here is source file after added the code to the form. I added this at the top of the form by highlighting the checkbox, Selecting “click”
<field name="CheckBox1" y="53.975mm" x="31.75mm" w="28mm" h="6mm">
<ui>
<checkButton>
<border>
<?templateDesigner StyleID apcb2?>
<edge stroke="lowered"/>
<fill/>
</border>
</checkButton>
</ui>
<font typeface="Myriad Pro"/>
<margin leftInset="1mm" rightInset="1mm"/>
<para vAlign="middle"/>
<value>
<integer>0</integer>
</value>
<caption placement="right" reserve="21mm">
<para vAlign="middle"/>
<font typeface="Myriad Pro"/>
<value>
<text>Check Box</text>
</value>
</caption>
<items>
<integer>1</integer>
<integer>0</integer>
<integer>2</integer>
</items>
<?templateDesigner ScriptInitializers click::lang=JavaScript;?>
<event activity="click">
<script contentType="application/x-javascript">if
( this.rawValue == 1 )
{
TextField3.presence = "visible"
}
else
{
TextField3.presence = "invisible"
Views
Replies
Total Likes