# Form field

**URL:** <https://forum.kirupa.com/t/form-field/30188>\
**Category:** Uncategorized\
**Created:** [September 4, 2003, 9:56pm UTC](https://forum.kirupa.com/t/form-field/30188 "2003-09-04T21:56:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DDD](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@DDD](https://forum.kirupa.com/u/DDD)\
**Post date:** [September 4, 2003, 9:56pm UTC](https://forum.kirupa.com/t/form-field/30188/1 "2003-09-04T21:56:30Z")

</div>

Sorry guys for the double post…But I am desperate. I have a flash form that I want to have a default value in when it is onBlur (or does not have focus) then onFocus the value goes away and the user is able to type. With a value in the field, when the field loses focus it retains the value placed in there. If they do not place a value in the field and the field loses focus it reverts back to the default value. Let me know if you need more clarity…

I saw sen (i think he helped someone with this before) in here that is why I doubled posted but it seems I have missed him ☹ …Please dont ban me…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2003, 10:02pm UTC](https://forum.kirupa.com/t/form-field/30188/2 "2003-09-04T22:02:10Z")

</div>

yeah it can be done. Define 2 text format object then link them up to the onSetFocus and on KillFocus commands. Inside the onKillFocus, check to see if they entered anything, if not, back to the original format.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2003, 10:04pm UTC](https://forum.kirupa.com/t/form-field/30188/3 "2003-09-04T22:04:12Z")

</div>

grandsp5- thanks man

I am in no-way trying to lean on anyone for all their knowledge and I believe in finding things for yourself. But my AS is terrible could you kick me a lil snippet I can play with. I’ll trade ya some photoshop knowledge 🙂 (I barely get out of the D&D forum)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2003, 10:07pm UTC](https://forum.kirupa.com/t/form-field/30188/4 "2003-09-04T22:07:08Z")

</div>

sure. my Photoshop skills need work anyways. give me a little while.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2003, 10:10pm UTC](https://forum.kirupa.com/t/form-field/30188/5 "2003-09-04T22:10:22Z")

</div>

here i found an example I had lying around on my hd. This isnt exactly what you wanted but you should be able to add a check to see if there is any text in the field pretty easily.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2003, 10:21pm UTC](https://forum.kirupa.com/t/form-field/30188/6 "2003-09-04T22:21:57Z")

</div>

ok thanks I will have a look at it and see if I can put something together. I’ll post if I get stuck.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 5, 2003, 12:47am UTC](https://forum.kirupa.com/t/form-field/30188/7 "2003-09-05T00:47:04Z")

</div>

man that AS is really out of my league. do you have a lower life form example?
