# Select Text on Field Selection?

**URL:** <https://forum.servoy.com/t/select-text-on-field-selection/6127>\
**Category:** Classic Servoy\
**Created:** [June 23, 2006, 7:42pm UTC](https://forum.servoy.com/t/select-text-on-field-selection/6127 "2006-06-23T19:42:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bubba](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@bubba](https://forum.servoy.com/u/bubba)\
**Post date:** [June 23, 2006, 7:42pm UTC](https://forum.servoy.com/t/select-text-on-field-selection/6127/1 "2006-06-23T19:42:46Z")

</div>

Is it possible to have Servoy select the existing field data when the cursor is placed into a field?

This is a feature of FM7/8 that I’d like to replicate.

Thanks,  
Lee

---

<div class="post-metadata">

**Author:** ![Westy](https://avatars.discourse-cdn.com/v4/letter/w/9de053/32.png) [@Westy](https://forum.servoy.com/u/Westy)\
**Post date:** [June 23, 2006, 7:49pm UTC](https://forum.servoy.com/t/select-text-on-field-selection/6127/2 "2006-06-23T19:49:00Z")

</div>

While in Designer mode select the field, then check off the “selectOnEnter” property for the field. You can also do it within a method by using:

```auto
//Select all the field contents
elements.fieldpropertyname.selectAll();

```

When using within a method just be sure to first fill in a ‘name’ for the field under the field’s properties and substitute that name for ‘fieldpropertyname’ in the code shown above (this is required because you are referring to it as a form _element_).

Dean

---

<div class="post-metadata">

**Author:** ![bubba](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@bubba](https://forum.servoy.com/u/bubba)\
**Post date:** [June 23, 2006, 8:20pm UTC](https://forum.servoy.com/t/select-text-on-field-selection/6127/3 "2006-06-23T20:20:12Z")

</div>

Thanks Dean:

I looked at the properties, but somehow didn’t see that one. Guess it was just too dang obvious. I’m getting too old. ![;-)]( "Wink")

Regards,  
Lee

---

<div class="post-metadata">

**Author:** ![bubba](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@bubba](https://forum.servoy.com/u/bubba)\
**Post date:** [June 23, 2006, 8:49pm UTC](https://forum.servoy.com/t/select-text-on-field-selection/6127/4 "2006-06-23T20:49:54Z")

</div>

Dean:

Another follow up.

I selected that option, but it does not seem to have any effect.

??

Thanks,  
Lee

---

<div class="post-metadata">

**Author:** ![chartpacs](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@chartpacs](https://forum.servoy.com/u/chartpacs)\
**Post date:** [August 11, 2006, 4:30pm UTC](https://forum.servoy.com/t/select-text-on-field-selection/6127/5 "2006-08-11T16:30:25Z")

</div>

Is selectOnEnter broken in the latest 3.0 RC, at least on Macs? Like **bubba** , checking his property has no effect whatsoever.
