help with captions

4 views
Skip to first unread message

JavaJones

unread,
May 8, 2008, 5:13:28 PM5/8/08
to Adobe LiveCycle Developers
I am currently able to access a text fields toolTip via script but I
can not seem to access the text field's caption this way.

toolTip:
Page1.txtField.getElement("assist").toolTip.value

caption
Page1.txtField.getElement("caption").value

nor
Page1.txtField.getElement("caption").name.value


Has anyone been able to retrieve the caption of a textField or
dropdownlist this way?

raghava kumar

unread,
May 9, 2008, 1:17:02 AM5/9/08
to live...@googlegroups.com
 
Hi,
 try to use this script to access the caption of a text field.

Page1.txtField.caption.value.text.value="desired caption";
 
Note: when you are not able to access the field directly (through script), refer to the XML source for the exact property/tag of that field.
 
Raghav

JavaJones

unread,
May 9, 2008, 10:22:56 AM5/9/08
to Adobe LiveCycle Developers
Thank you Raghava Kumar. I didn't drill down far enough.

On May 9, 12:17 am, "raghava kumar" <raghavakuma...@gmail.com> wrote:
> Hi,
> try to use this script to access the caption of a text field.
>
> Page1.txtField.caption.value.text.value="desired caption";
>
> Note: when you are not able to access the field directly (through script),
> refer to the XML source for the exact property/tag of that field.
>
> Raghav
>
Reply all
Reply to author
Forward
0 new messages