# textfield and textarea

**URL:** <https://forum.servoy.com/t/textfield-and-textarea/768>\
**Category:** Classic Servoy\
**Created:** [November 27, 2003, 9:50am UTC](https://forum.servoy.com/t/textfield-and-textarea/768 "2003-11-27T09:50:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [November 27, 2003, 9:50am UTC](https://forum.servoy.com/t/textfield-and-textarea/768/1 "2003-11-27T09:50:01Z")

</div>

I have a form with a text area on top of that form. I open the form in a Dialog.

Now I have two issues in one that I want to turn into a feature request although I don’t know what that should be ![:?]( "Confused")

First: let’s say I only fill that text area with content and no other fields. When I now exit that form by closing it, the content of the field is lost since I didn’t exit the field…

Second: A logical way to exit that field would be by tabbing out of it. I can’t do this because it is a text area. But In fact I only needed a multiline textfield…

So the second one is simple: can you give us a multiline textfield? Or give us a property ‘acceptTab’?

The first one is less simple I guess…

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [November 27, 2003, 10:06am UTC](https://forum.servoy.com/t/textfield-and-textarea/768/2 "2003-11-27T10:06:43Z")

</div>

We better do a saveData on close of formDialog I think…

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [November 27, 2003, 12:48pm UTC](https://forum.servoy.com/t/textfield-and-textarea/768/3 "2003-11-27T12:48:35Z")

</div>

We cannot reproduce your problem since the data is **always** saved on dialog close.

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [November 27, 2003, 1:18pm UTC](https://forum.servoy.com/t/textfield-and-textarea/768/4 "2003-11-27T13:18:25Z")

</div>

Jan, I found out, while rebuilding my situation in a test, that you are right but…

Download the example and do as described:

1. select a record and click the button
2. click the button in the dialog
3. change the content of the field without enter
4. see what happens with the content of both fields on form 1 and 2

The issue I have is that I need the view to be in form 2…

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [November 27, 2003, 2:34pm UTC](https://forum.servoy.com/t/textfield-and-textarea/768/5 "2003-11-27T14:34:46Z")

</div>

1. do change to what you made them… so what is the problem?

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [November 27, 2003, 2:40pm UTC](https://forum.servoy.com/t/textfield-and-textarea/768/6 "2003-11-27T14:40:10Z")

</div>

Jan, I will check if I can adjust the example to be more accurate. I do have a problem here… Don’t you see anything going wrong?

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [November 27, 2003, 3:14pm UTC](https://forum.servoy.com/t/textfield-and-textarea/768/7 "2003-11-27T15:14:12Z")

</div>

No problems, what do you see happening?  
in our test on your solution all changes in fields are reflected in all forms.

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [November 27, 2003, 3:21pm UTC](https://forum.servoy.com/t/textfield-and-textarea/768/8 "2003-11-27T15:21:20Z")

</div>

Not in my case. The first form gets updated, the second form (first dialog) does not at first sight!

I am now ‘playing’ with my original application (it is really too difficult to emulate it in another app) and I find that doing a simple application.beep() at the onLostFocus event saves the content of the field!!! HEY and even when I rem that line (‘//’) it works now ![:?]( "Confused")

I really don’t understand (_&(_& about this because the same situation works if I don’t call a dialog…
