# Values in fields are different to foundset selected record

**URL:** https://forum.servoy.com/t/values-in-fields-are-different-to-foundset-selected-record/12370
**Category:** Classic Servoy
**Created:** [June 21, 2010, 12:38am UTC](https://forum.servoy.com/t/values-in-fields-are-different-to-foundset-selected-record/12370 "2010-06-21T00:38:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![thonda](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@thonda](https://forum.servoy.com/u/thonda)
#### Post date: [June 21, 2010, 12:38am UTC](https://forum.servoy.com/t/values-in-fields-are-different-to-foundset-selected-record/12370/1 "2010-06-21T00:38:44Z")

</div>

Hi everybody,

we are currently experiencing this strange issue.  
We have a form simply based on a table. There is a button that creates new record. When you press this button new record is really created however the form displays in its fields the old values of the last selected record. This is quite strange, because when I debug it I can see that the foundset of this form contains new - blank record and this record is selected! But the values in form fields are different and when you type something in these fields it’s affecting the old record…eventhough the new blank record is selected.

Didn’t anybody have a similar problem???  
Thanks a lot for any responses.

---

<div class="post-metadata">

### Author: ![thonda](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@thonda](https://forum.servoy.com/u/thonda)
#### Post date: [June 21, 2010, 2:50am UTC](https://forum.servoy.com/t/values-in-fields-are-different-to-foundset-selected-record/12370/2 "2010-06-21T02:50:49Z")

</div>

OK… so we’ve found where the problem was.  
This line was causing it:

```auto
forms[formName].foundset.multiSelect = true;

```

The problem was that the last record remained selected together with newly created record. As a result the old selected record was printed in the form instead of the new blank record.  
So it was pretty much a issue of multiselect feature of a foundset. I am now wondering how exactly does the foundset behave on creating/deleting record when multiselect is enabled.

---

<div class="post-metadata">

### Author: ![Gabi\_Boros](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@Gabi\_Boros](https://forum.servoy.com/u/Gabi_Boros)
#### Post date: [June 25, 2010, 9:06am UTC](https://forum.servoy.com/t/values-in-fields-are-different-to-foundset-selected-record/12370/3 "2010-06-25T09:06:47Z")

</div>

this issue will be fixed in the next release
