Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

how to change the border to none using javascript?

Avatar

Level 2

Hi

guys im pretty new to adobe live cycle designer es2 i have a really easy one.

how do i change the boxtype or apperance of a textbox  from solid to none after pressing a button

I have tried this on the click even tof a a button but does not seem to work.

NumericField1[0].border = "None";   

any suggestions? would be greatly appreciated it from a youn noob.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

   The problem in your form was it was set as Static Form. 

   You need do the following to make the script work.

     1) Goto File menu -> Form Properties and select Defaults tab. Change the Default Render Format as Dynamic XML form

     2) Select the Preview Tab. Set the Preview type as "Interactive Form" and Preview Adobe XML form as Dynamic XML form

     3) Finally while saving the PDF select Save As Type as "Adobe Dynamic XML Form".

    I corrected the form and is available at the below link.

https://acrobat.com/#d=R7qmed71zsu744V0Qvddvg

     Also try to give unique names to controls that are not related to each other.

Thanks

Srini

View solution in original post

9 Replies

Avatar

Level 10

You can try the following to hide the border.

NumericField1.border.edge.presence = "hidden";

Thanks

Srini

Avatar

Level 2

this does not appear to work ?... if i set a border of solid and then i presse a button

and i put the code on it nothing happens? any other suggestions?

Avatar

Level 2

like the actual xml? i dont have a way to attach a form to this forum ? is there?

Avatar

Level 2


<?xml version="1.0" encoding="UTF-8"?>

<?xfa generator="AdobeLiveCycleDesignerES_V8.2.1.4029.1.523496" APIVersion="2.8.9029.0"?>

<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2010-03-04T21:16:04Z" uuid="0f81600a-60f4-4a13-80cd-454c40fd38ce">

<template xmlns="http://www.xfa.org/schema/xfa-template/2.6/">

   <?formServer defaultPDFRenderFormat acrobat8.1static?>

   <subform name="form1" layout="tb" locale="en_US">

      <pageSet>

         <pageArea name="Page1" id="Page1">

            <contentArea x="0.25in" y="0.25in" w="576pt" h="756pt"/>

            <medium stock="default" short="612pt" long="792pt"/>

            <?templateDesigner expand 1?></pageArea>

         <?templateDesigner expand 1?></pageSet>

      <subform w="576pt" h="756pt">

         <field name="PrintButton1" x="174.625mm" w="28.575mm" h="6mm">

            <?templateDesigner isPrintObject true?>

            <ui>

               <button/>

            </ui>

            <font typeface="Myriad Pro"/>

            <caption>

               <value>

                  <text>Print Form</text>

               </value>

               <para hAlign="center" vAlign="middle"/>

               <font typeface="Myriad Pro"/>

            </caption>

            <border hand="right">

               <?templateDesigner StyleID apbx2?>

               <edge stroke="raised"/>

               <fill>

                  <color value="212,208,200"/>

               </fill>

            </border>

            <bind match="none"/>

            <event name="event__click" activity="click">

               <script contentType="application/x-javascript">//xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);

//NumericField1[0].border = "None";

xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);</script>

            </event>

            <traversal>

               <traverse ref="TextField11[0]"/>

            </traversal>

         </field>

         <traversal>

            <traverse operation="first" ref="PrintButton1[0]"/>

         </traversal>

         <field name="Button1" x="136.525mm" w="34.925mm" h="6mm">

            <ui>

               <button highlight="inverted"/>

            </ui>

            <font typeface="Myriad Pro"/>

            <caption>

               <value>

                  <text>Populate 1099 fields</text>

               </value>

               <para vAlign="middle" hAlign="center"/>

               <font typeface="Myriad Pro"/>

            </caption>

            <border hand="right">

               <?templateDesigner StyleID apbx2?>

               <edge stroke="raised"/>

               <fill>

                  <color value="212,208,200"/>

               </fill>

            </border>

            <bind match="none"/>

            <event activity="click" name="event__click">

               <script>TextField1.rawValue = TextField6.rawValue

</script>

            </event>

            <traversal>

               <traverse ref="TextField13[0]"/>

            </traversal>

         </field>

         <field name="TextField11" y="6.35mm" x="9.525mm" w="85.725mm" h="22.225mm">

            <ui>

               <textEdit multiLine="1">

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="Button1[0]"/>

            </traversal>

         </field>

         <field name="NumericField1" y="9.525mm" x="98.425mm" w="28.575mm" h="0.307917in">

            <ui>

               <numericEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </numericEdit>

            </ui>

            <font typeface="Times New Roman" size="8pt"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.4383mm">

               <font typeface="Times New Roman" size="8pt"/>

               <para vAlign="middle"/>

            </caption>

            <border>

               <edge/>

               <corner thickness="0.175mm"/>

            </border>

            <traversal>

               <traverse ref="Text1[0]"/>

            </traversal>

         </field>

         <field name="TextField13" y="19.05mm" x="97.425mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro" size="8pt"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro" size="8pt"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField14[0]"/>

            </traversal>

            <border>

               <edge stroke="raised"/>

            </border>

         </field>

         <field name="TextField14" y="28.575mm" x="98.425mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField15[0]"/>

            </traversal>

         </field>

         <field name="TextField15" y="38.1mm" x="98.425mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField16[0]"/>

            </traversal>

         </field>

         <field name="TextField16" y="47.625mm" x="98.425mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField17[0]"/>

            </traversal>

         </field>

         <field name="TextField17" y="28.575mm" x="130.175mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField18[0]"/>

            </traversal>

         </field>

         <field name="TextField18" y="38.1mm" x="130.175mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField19[0]"/>

            </traversal>

         </field>

         <field name="TextField19" y="47.625mm" x="130.175mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField20[0]"/>

            </traversal>

         </field>

         <field name="TextField20" y="57.15mm" x="130.175mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField21[0]"/>

            </traversal>

         </field>

         <field name="TextField21" y="66.675mm" x="130.175mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField22[0]"/>

            </traversal>

         </field>

         <field name="TextField22" y="76.2mm" x="130.175mm" w="28.575mm" h="7.821mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField23[0]"/>

            </traversal>

         </field>

         <field name="TextField23" y="76.2mm" x="165.1mm" w="28.575mm" h="7.821mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField24[0]"/>

            </traversal>

         </field>

         <field name="TextField24" y="66.675mm" x="98.425mm" w="28.575mm" h="7.821mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField25[0]"/>

            </traversal>

         </field>

         <field name="TextField25" y="76.2mm" x="98.425mm" w="28.575mm" h="7.821mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField26[0]"/>

            </traversal>

         </field>

         <field name="TextField26" y="76.2mm" x="53.975mm" w="28.575mm" h="7.821mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField27[0]"/>

            </traversal>

         </field>

         <field name="TextField27" y="76.2mm" x="9.6mm" w="28.575mm" h="7.821mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField28[0]"/>

            </traversal>

         </field>

         <field name="TextField28" y="28.575mm" x="9.525mm" w="34.925mm" h="7.0mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField29[0]"/>

            </traversal>

         </field>

         <field name="TextField29" y="28.575mm" x="50.8mm" w="34.925mm" h="7mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField30[0]"/>

            </traversal>

         </field>

         <field name="TextField30" y="34.925mm" x="9.525mm" w="85.725mm" h="22.225mm">

            <ui>

               <textEdit multiLine="1">

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField31[0]"/>

            </traversal>

         </field>

         <field name="TextField31" y="57.15mm" x="9.525mm" w="85.725mm" h="7mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="NumericField1[0]"/>

            </traversal>

         </field>

         <field name="TextField11" y="92.075mm" x="9.525mm" w="85.725mm" h="22.225mm">

            <ui>

               <textEdit multiLine="1">

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <bind match="dataRef" ref="TextField11[0]"/>

            <traversal>

               <traverse ref="NumericField1[1]"/>

            </traversal>

         </field>

         <field name="NumericField1" y="95.25mm" x="98.425mm" w="28.575mm" h="0.307917in">

            <ui>

               <numericEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </numericEdit>

            </ui>

            <font typeface="Times New Roman" size="8pt"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.4383mm">

               <font typeface="Times New Roman" size="8pt"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField13[1]"/>

            </traversal>

            <bind match="dataRef" ref="NumericField1[0]"/>

         </field>

         <field name="TextField13" y="104.775mm" x="98.425mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField28[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField13[0]"/>

         </field>

         <field name="TextField14" y="114.3mm" x="98.425mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField17[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField14[0]"/>

         </field>

         <field name="TextField15" y="123.825mm" x="98.425mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField18[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField15[0]"/>

         </field>

         <field name="TextField16" y="133.35mm" x="98.425mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField19[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField16[0]"/>

         </field>

         <field name="TextField17" y="114.3mm" x="130.175mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField30[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField17[0]"/>

         </field>

         <field name="TextField18" y="123.825mm" x="130.175mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField16[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField18[0]"/>

         </field>

         <field name="TextField19" y="133.35mm" x="130.175mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField31[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField19[0]"/>

         </field>

         <field name="TextField20" y="142.875mm" x="130.175mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField24[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField20[0]"/>

         </field>

         <field name="TextField21" y="152.4mm" x="130.175mm" w="28.575mm" h="0.307917in">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField27[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField21[0]"/>

         </field>

         <field name="TextField22" y="161.925mm" x="130.175mm" w="28.575mm" h="7.821mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField23[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField22[0]"/>

         </field>

         <field name="TextField23" y="161.925mm" x="165.1mm" w="28.575mm" h="7.821mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <bind match="dataRef" ref="TextField23[0]"/>

            <traversal>

               <traverse ref="Button2[0]"/>

            </traversal>

         </field>

         <field name="TextField24" y="152.4mm" x="98.425mm" w="28.575mm" h="7.821mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField21[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField24[0]"/>

         </field>

         <field name="TextField25" y="161.925mm" x="98.425mm" w="28.575mm" h="7.821mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField22[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField25[0]"/>

         </field>

         <field name="TextField26" y="161.925mm" x="53.975mm" w="28.575mm" h="7.821mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField25[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField26[0]"/>

         </field>

         <field name="TextField27" y="161.925mm" x="9.6mm" w="28.575mm" h="7.821mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField26[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField27[0]"/>

         </field>

         <field name="TextField28" y="114.3mm" x="9.525mm" w="34.925mm" h="7.0mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField29[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField28[0]"/>

         </field>

         <field name="TextField29" y="114.3mm" x="50.8mm" w="34.925mm" h="7mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField14[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField29[0]"/>

         </field>

         <field name="TextField30" y="120.65mm" x="9.525mm" w="85.725mm" h="22.225mm">

            <ui>

               <textEdit multiLine="1">

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField15[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField30[0]"/>

         </field>

         <field name="TextField31" y="142.875mm" x="9.525mm" w="85.725mm" h="7mm">

            <ui>

               <textEdit>

                  <border presence="hidden">

                     <?templateDesigner StyleID aped0?></border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="0.01in">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

            </caption>

            <traversal>

               <traverse ref="TextField20[1]"/>

            </traversal>

            <bind match="dataRef" ref="TextField31[0]"/>

         </field>

         <draw name="Text1" y="9.525mm" x="117.475mm" w="15.875mm" h="0.150472in">

            <ui>

               <textEdit/>

            </ui>

            <value>

               <text> 1 rents</text>

            </value>

            <font typeface="Myriad Pro" size="6pt"/>

            <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

            <traversal>

               <traverse ref="Text2[0]"/>

            </traversal>

         </draw>

         <draw name="Text2" y="19.05mm" x="114.3mm" w="0.659222in" h="0.136583in">

            <ui>

               <textEdit/>

            </ui>

            <value>

               <text>2 Royalties</text>

            </value>

            <

font typeface="Myriad Pro" size="6pt"/>

            <

margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>

            <

traversal>

               <

traverse ref="TextField11[1]"/>

            </

traversal>

         </

draw>

         <

field name="Button2" y="6.35mm" x="174.625mm" w="28.575mm" h="6mm">

            <

ui>

               <

button highlight="inverted"/>

            </

ui>

            <

font typeface="Myriad Pro"/>

            <

caption>

               <

value>

                  <

text>test</text>

               </

value>

               <

para vAlign="middle" hAlign="center"/>

               <font typeface="Myriad Pro"/>

            </caption>

            <border hand="right">

               <edge stroke="raised"/>

               <fill>

                  <color value="212,208,200"/>

               </fill>

            </border>

            <bind match="none"/>

            <event activity="click" name="event__click">

               <script contentType="application/x-javascript">if (CheckBox1.rawValue == true)

xfa.resolveNode("TextField11.ui.#textEdit.border.edge").stroke = "solid";

else xfa.resolveNode("TextField11.ui.#textEdit.border.edge").stroke = "lowered";

 

 

NumericField1.border.corner.stroke.presence = "none";

NumericField1.rawValue = 45;

TextField32.rawValue = "yoh!";

//NumericField1[0].border.edge.thickness = 0;

</script>

            </event>

            <traversal>

               <traverse ref="CheckBox1[0]"/>

            </traversal>

         </field>

         <field name="CheckBox1" x="101.6mm" 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>

            <traversal>

               <traverse ref="TextField32[0]"/>

            </traversal>

         </field>

         <field name="TextField32" y="15.875mm" x="139.7mm" w="62mm" h="9mm">

            <ui>

               <textEdit>

                  <border>

                     <?templateDesigner StyleID aped3?>

                     <edge stroke="lowered"/>

                  </border>

                  <margin/>

               </textEdit>

            </ui>

            <font typeface="Myriad Pro"/>

            <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

            <para vAlign="middle"/>

            <caption reserve="25mm">

               <font typeface="Myriad Pro"/>

               <para vAlign="middle"/>

               <value>

                  <text>Text Field</text>

               </value>

            </caption>

            <border>

               <edge/>

               <corner thickness="0.175mm"/>

            </border>

         </field>

         <?templateDesigner expand 1?></subform>

      <proto/>

      <desc>

         <text name="version">8.2.1.4029.1.523496.503679</text>

      </desc>

      <?templateDesigner expand 1?></subform>

   <?templateDesigner DefaultLanguage FormCalc?>

   <?templateDesigner DefaultRunAt client?>

   <?templateDesigner Grid show:1, snap:1, units:0, color:ff8080, origin:(0,0), interval:(125000,125000)?>

   <?acrobat JavaScript strictScoping?>

   <?templateDesigner Zoom 100?>

   <?templateDesigner FormTargetVersion 26?>

   <?templateDesigner SaveTaggedPDF 1?>

   <?templateDesigner SavePDFWithEmbeddedFonts 1?>

   <?templateDesigner Rulers horizontal:1, vertical:1, guidelines:1, crosshairs:0?></template>

<config xmlns="http://www.xfa.org/schema/xci/2.6/">

   <agent name="designer">

      <destination>pdf</destination>

      <pdf>

         <!--  [0..n]  -->

         <fontInfo/>

      </pdf>

   </agent>

   <present>

      <!--  [0..n]  -->

      <pdf>

         <!--  [0..n]  -->

         <version>1.7</version>

         <adobeExtensionLevel>1</adobeExtensionLevel>

      </pdf>

      <xdp>

         <packets>*</packets>

      </xdp>

   </present>

   <?originalXFAVersion http://www.xfa.org/schema/xci/2.8/?></config>;

<localeSet xmlns="http://www.xfa.org/schema/xfa-locale-set/2.6/">

   <locale name="en_US" desc="English (United States)">

      <calendarSymbols name="gregorian">

         <monthNames>

            <month>January</month>

            <month>February</month>

            <month>March</month>

            <month>April</month>

            <month>May</month>

            <month>June</month>

            <month>July</month>

            <month>August</month>

            <month>September</month>

            <month>October</month>

            <month>November</month>

            <month>December</month>

         </monthNames>

         <monthNames abbr="1">

            <month>Jan</month>

            <month>Feb</month>

            <month>Mar</month>

            <month>Apr</month>

            <month>May</month>

            <month>Jun</month>

            <month>Jul</month>

            <month>Aug</month>

            <month>Sep</month>

            <month>Oct</month>

            <month>Nov</month>

            <month>Dec</month>

         </monthNames>

         <dayNames>

            <day>Sunday</day>

            <day>Monday</day>

            <day>Tuesday</day>

            <day>Wednesday</day>

            <day>Thursday</day>

            <day>Friday</day>

            <day>Saturday</day>

         </dayNames>

         <dayNames abbr="1">

            <day>Sun</day>

            <day>Mon</day>

            <day>Tue</day>

            <day>Wed</day>

            <day>Thu</day>

            <day>Fri</day>

            <day>Sat</day>

         </dayNames>

         <meridiemNames>

            <meridiem>AM</meridiem>

            <meridiem>PM</meridiem>

         </meridiemNames>

         <eraNames>

            <era>BC</era>

            <era>AD</era>

         </eraNames>

      </calendarSymbols>

      <datePatterns>

         <datePattern name="full">EEEE, MMMM D, YYYY</datePattern>

         <datePattern name="long">MMMM D, YYYY</datePattern>

         <datePattern name="med">MMM D, YYYY</datePattern>

         <datePattern name="short">M/D/YY</datePattern>

      </datePatterns>

      <timePatterns>

         <timePattern name="full">h:MM:SS A Z</timePattern>

         <timePattern name="long">h:MM:SS A Z</timePattern>

         <timePattern name="med">h:MM:SS A</timePattern>

         <timePattern name="short">h:MM A</timePattern>

      </timePatterns>

      <dateTimeSymbols>GyMdkHmsSEDFwWahKzZ</dateTimeSymbols>

      <numberPatterns>

         <numberPattern name="numeric">z,zz9.zzz</numberPattern>

         <numberPattern name="currency">$z,zz9.99|($z,zz9.99)</numberPattern>

         <numberPattern name="percent">z,zz9%</numberPattern>

      </numberPatterns>

      <numberSymbols>

         <numberSymbol name="decimal">.</numberSymbol>

         <numberSymbol name="grouping">,</numberSymbol>

         <numberSymbol name="percent">%</numberSymbol>

         <numberSymbol name="minus">-</numberSymbol>

         <numberSymbol name="zero">0</numberSymbol>

      </numberSymbols>

      <currencySymbols>

         <currencySymbol name="symbol">$</currencySymbol>

         <currencySymbol name="isoname">USD</currencySymbol>

         <currencySymbol name="decimal">.</currencySymbol>

      </currencySymbols>

      <typefaces>

         <typeface name="Myriad Pro"/>

         <typeface name="Minion Pro"/>

         <typeface name="Courier Std"/>

         <typeface name="Adobe Pi Std"/>

         <typeface name="Adobe Hebrew"/>

         <typeface name="Adobe Arabic"/>

         <typeface name="Adobe Thai"/>

         <typeface name="Kozuka Gothic Pro-VI M"/>

         <typeface name="Kozuka Mincho Pro-VI R"/>

         <typeface name="Adobe Ming Std L"/>

         <typeface name="Adobe Song Std L"/>

         <typeface name="Adobe Myungjo Std M"/>

      </typefaces>

   </locale>

</localeSet>

<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.2.1-c041 52.337767, 2008/04/13-15:41:00        ">

   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

      <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">

         <xmp:MetadataDate>2010-03-04T21:16:04Z</xmp:MetadataDate>

         <

xmp:CreatorTool>Adobe LiveCycle Designer ES 8.2</xmp:CreatorTool>

      </

rdf:Description>

      <

rdf:Description xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">

         <

pdf:Producer>Adobe LiveCycle Designer ES 8.2</pdf:Producer>

      </

rdf:Description>

      <

rdf:Description xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" rdf:about="">

         <

xmpMM:DocumentID>uuid:0f81600a-60f4-4a13-80cd-454c40fd38ce</xmpMM:DocumentID>

      </

rdf:Description>

      <

rdf:Description xmlns:desc="http://ns.adobe.com/xfa/promoted-desc/" rdf:about="">

         <

desc:version rdf:parseType="Resource">

            <

rdf:value>8.2.1.4029.1.523496.503679</rdf:value>

            <

desc:ref>/template/subform[1]</desc:ref>

         </

desc:version>

      </

rdf:Description>

   </

rdf:RDF>

</

x:xmpmeta></xdp:xdp>


here is the xml?...

Avatar

Level 10

Steps to upload the document

1) goto acrobat.com website
2) login with your Adobe login/password.
3) In Actions you will find Upload. Select your form and upload.
4) After uploading, select form name in All Files section and right click and select share.
5) Check the checkbox "Allow anyone with a link to view this document".
6) Copy the URL link and post it in the forum.

Avatar

Level 2

https://acrobat.com/#d=TcNQs*JthNeHE2n52F1i3A

thanks for the steps i never even knew you can do that anywho here is the link.

thank you very much

Avatar

Correct answer by
Level 10

Hi,

   The problem in your form was it was set as Static Form. 

   You need do the following to make the script work.

     1) Goto File menu -> Form Properties and select Defaults tab. Change the Default Render Format as Dynamic XML form

     2) Select the Preview Tab. Set the Preview type as "Interactive Form" and Preview Adobe XML form as Dynamic XML form

     3) Finally while saving the PDF select Save As Type as "Adobe Dynamic XML Form".

    I corrected the form and is available at the below link.

https://acrobat.com/#d=R7qmed71zsu744V0Qvddvg

     Also try to give unique names to controls that are not related to each other.

Thanks

Srini

Avatar

Level 2

you are the man!!! thank you very much a I've been working on this simple task for hours and couldnt get it to work .

thank you thank you thank you!!!