# Calculated fields in value lists

**URL:** <https://forum.servoy.com/t/calculated-fields-in-value-lists/12443>\
**Category:** Classic Servoy\
**Created:** [July 5, 2010, 10:55pm UTC](https://forum.servoy.com/t/calculated-fields-in-value-lists/12443 "2010-07-05T22:55:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BulldogBen](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@BulldogBen](https://forum.servoy.com/u/BulldogBen)\
**Post date:** [July 5, 2010, 10:55pm UTC](https://forum.servoy.com/t/calculated-fields-in-value-lists/12443/1 "2010-07-05T22:55:58Z")

</div>

I’m having a little trouble with value lists. I have a type-ahead field with a data provider of person\_id. I am returning person\_id, and want to show person\_id, name\*\*\_full\*\*, and postcode.

Name\_full is a calculated field with the following simple code

```auto
function name_full()
{
 	return name_first + ' ' + name_last;
}

```

Whether or not I store name\_full, I can’t get it to work properly. I want to be able to type John Smith and get “234 John Smith AB1 2BC” come up in list.

Screenshot shows how I’ve got my value list setup, any help appreciated

 ![value list setup.jpg](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/e/e3fcedd87926845bfc58f97d81f1eb899ef67e1b.jpeg)

---

<div class="post-metadata">

**Author:** ![BulldogBen](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@BulldogBen](https://forum.servoy.com/u/BulldogBen)\
**Post date:** [July 5, 2010, 11:09pm UTC](https://forum.servoy.com/t/calculated-fields-in-value-lists/12443/2 "2010-07-05T23:09:11Z")

</div>

**I’ve fixed it**. It turns out it was because my stored values were blank since I was playing with the list.

While experimenting with table view tab all my name\_full fields re-calulated and populated, and now it works just fine. **I guess the answer to my own question is the field I use must be stored?**

(It raises another question about how to programatically recalculate a field, but that’s for another day / post / life)
