Expand my Community achievements bar.

How to access the caption of the text field??

Avatar

Former Community Member
Can someone give me the javascript to access the caption property of the test fields.Actually i've tried with 'TextField.caption' but it isn't working properly.

Waiting for anyone to fix the problem

Thanks and Regards

Shoaib
1 Reply

Avatar

Former Community Member
Hello,

in javascript you can use the next code

TextField1.caption.value.text.value="New Caption";

But your form should be dynamic and caption shouldn't use rich text formating features.



Hope it helps.