View Full Version : Dynamically add TextAreas to a FormPanel on User Input

30 Jun 2009, 2:25 PM
Hello. I have a FormPanel displaying a pretty basic form, essentially, it just contains a "Name" field, a "Description" field, and multiple "Rules" text areas. What I want is for the user to be able to type text into the first such Rule text area and have another empty TextField appear (when they start typing) for an additional rule - every time they type in the bottom-most text area, a new one appears.

What I'm essentially looking for is how I can dynamically modify the number of TextAreas in the form.

30 Jun 2009, 4:19 PM
FormPanel has an add method. Also trying searching here - there are other threads discussing this.