Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Pre-populating a text field with editable text

Avatar

Level 3

I want to have a form open with a few lines of editable text appear automatically in a text field. Is this possible?

5 Replies

Avatar

Level 10

Yes it is, but that's not a trival thing.

Read this post by John Brinkman.

There you can find all you need.

http://blogs.adobe.com/formfeed/2010/09/editable-floating-fields-v3.html

Avatar

Level 2

My understanding of the OP's question was that he just wants to pre-populate a multiline text field with some data when the form opens.

@usuggestaname - is that what you wanted to know? If yes, that's possible in a few different ways, can you specify your use case a bit further.

Avatar

Level 10

Hmm,

when I read the question again and again, you might be right.

My foreign language knowledge sometimes plays a trick on me.

Avatar

Level 3

Yes, that's what I want to do - when the form opens, I would like to have 2-3 lines of editable text appear in one of the text fields.

Avatar

Level 10

You can use a script in the layoutReady:event of your text field to add a default text to it if it is empty.

if (this.rawValue == null)

     {

     this.rawValue = "Your Text";

     }

else

     {

     this.rawValue;

     }

Or you simply add the default text into the field in Designer (Object palette > Value)