Expand my Community achievements bar.

Caption Rollovers

Avatar

Level 1

Apologies if this is posted in the wrong location.

I have created my first form in livecycle designer. I have added specific text for the 'rollover caption' in the button field tab, but when I save this PDF and open it in reader and acrobat, the caption upon rolling over the button is the same as the text on the button, not the same as what I put in the field.

Can anyone help with solving this issue please?

The XML says:

<field h="6mm" name="EmailButton" w="36.7707mm" x="124.2975mm" y="275.1692mm">

            <ui>

               <button/>

            </ui>

            <font typeface="Myriad Pro"/>

            <caption>

               <value>

                  <text>Submit Form via Email</text>

               </value>

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

               <font typeface="Myriad Pro"/>

            </caption>

            <border hand="right">

               <?templateDesigner StyleID apbx2?>

               <edge cap="butt" stroke="raised"/>

               <fill>

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

               </fill>

            </border>

            <bind match="none"/>

            <items>

               <text name="rollover">To submit email (use save form and email if this does not work)</text>

            </items>

            <event activity="click">

               <submit format="pdf" target="mailto:xxx@xxx.co.uk" textEncoding="UTF-16" xdpContent="pdf datasets xfdf"/>

            </event>

            <?templateDesigner expand 1?></field>

2 Replies

Avatar

Level 10

Hi,

You can achieve what you want, but not by adding code into the XML Source.

You would need to write script in the mouseEnter and mouseExit events (using the Script Editor - 5).

LC Designer Workspace.png

Try this in the mouseEnter event:

this.caption.value.text = "To submit email (use save form and email if this does not work)";

And this in the mouseExit event:

this.caption.value.text = "Submit by email";

Hope that helps,

Niall

Avatar

Level 1

Thanks Niall - sorted it via the options in the 'accessibility' tab.