# The value does not match

**URL:** <https://forum.wixstudio.com/t/the-value-does-not-match/34395>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [August 10, 2021, 10:50am UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395 "2021-08-10T10:50:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfaomega6665](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/alfaomega6665/32/29614_2.png) [@alfaomega6665](https://forum.wixstudio.com/u/alfaomega6665)\
**Post date:** [August 10, 2021, 10:50am UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/1 "2021-08-10T10:50:58Z")

</div>

Hi. I working in dynamic page where I try multiply value from input4 (quantity) and Imput2 (price) where outcome is send to imput6. all working fine but when submit values are send to database are correct a part of imput6.

 ![](https://us1.discourse-cdn.com/wix/original/3X/e/8/e853dd5c19855e57eaa19c997ebd418d73c92dc3.png)

my code:

export function input2\_change ( event ) {  
let qty1 = Number ( $w ( ‘#input4’ ). value );  
let price = Number ( $w ( ‘#input2’ ). value );

```
 $w ( "#input6" ). value += qty1 * price 
 console . log (( qty1 * price )) 

```

}

Thanks,

G

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [August 10, 2021, 10:56am UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/2 "2021-08-10T10:56:06Z")

</div>

Hi NajcargS,

Just change the type setings of your text field to number should do the trick

_Kind regards,_  
_Kristof_

---

<div class="post-metadata">

**Author:** ![alfaomega6665](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/alfaomega6665/32/29614_2.png) [@alfaomega6665](https://forum.wixstudio.com/u/alfaomega6665)\
**Post date:** [August 10, 2021, 11:10am UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/3 "2021-08-10T11:10:23Z")

</div>

Hi, I did but dont work ☹

![](https://us1.discourse-cdn.com/wix/original/3X/9/b/9bae4710abaa82a623b0d2c3587386fb82006600.png)

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [August 10, 2021, 11:24am UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/4 "2021-08-10T11:24:40Z")

</div>

You are using a form or just a dataset?

---

<div class="post-metadata">

**Author:** ![alfaomega6665](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/alfaomega6665/32/29614_2.png) [@alfaomega6665](https://forum.wixstudio.com/u/alfaomega6665)\
**Post date:** [August 10, 2021, 11:27am UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/5 "2021-08-10T11:27:45Z")

</div>

Dataset. If this help when I retype the numbers then works fine.

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [August 10, 2021, 12:09pm UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/6 "2021-08-10T12:09:42Z")

</div>

Can you post an image of datase  
and if you have any other code can you post that here aswel?  
Maybe the whole page code?

Also an full image of the website layout in the editor

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [August 10, 2021, 12:10pm UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/7 "2021-08-10T12:10:16Z")

</div>

and maybe show me how you linked the input field to the dataset

---

<div class="post-metadata">

**Author:** ![alfaomega6665](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/alfaomega6665/32/29614_2.png) [@alfaomega6665](https://forum.wixstudio.com/u/alfaomega6665)\
**Post date:** [August 10, 2021, 12:41pm UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/8 "2021-08-10T12:41:56Z")

</div>

![](https://us1.discourse-cdn.com/wix/original/3X/5/0/5060a631e02ad02a41da75ebbe53ef81142ec912.png)

 ![](https://us1.discourse-cdn.com/wix/original/3X/7/6/76762430f4de76ac5bb445f233323e97e29b51ea.png)

 ![](https://us1.discourse-cdn.com/wix/original/3X/d/9/d9c9573f0f80c22cb0b4fbde9c3f2f6f44c2d47a.png)

![](https://us1.discourse-cdn.com/wix/original/3X/d/d/dd3901ffb8542445df55bcf20b43dece854409dd.png)

![](https://us1.discourse-cdn.com/wix/original/3X/a/9/a903426b1912a4b8c301976df313bcb61aa15a63.png)

---

<div class="post-metadata">

**Author:** ![alfaomega6665](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/alfaomega6665/32/29614_2.png) [@alfaomega6665](https://forum.wixstudio.com/u/alfaomega6665)\
**Post date:** [August 10, 2021, 12:44pm UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/9 "2021-08-10T12:44:42Z")

</div>

QtyXpaid and QtyXprice that’s columns where $w ( “#input6” ) is connected to.  
On that page I don’t have more code then this what I post.

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [August 10, 2021, 12:47pm UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/10 "2021-08-10T12:47:00Z")

</div>

i Don’t see any ! anymore? or did you remove all?

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [August 10, 2021, 12:50pm UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/11 "2021-08-10T12:50:40Z")

</div>

I tried it myself and i don’t see anyproblem,  
Wich field was giving the “!”?

---

<div class="post-metadata">

**Author:** ![alfaomega6665](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/alfaomega6665/32/29614_2.png) [@alfaomega6665](https://forum.wixstudio.com/u/alfaomega6665)\
**Post date:** [August 10, 2021, 12:53pm UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/12 "2021-08-10T12:53:46Z")

</div>

![](https://us1.discourse-cdn.com/wix/original/3X/c/0/c02a390c997ccea0b2217ee04deb9c17089ea795.png)

 ![](https://us1.discourse-cdn.com/wix/original/3X/5/7/57c2593b221dcfbe2265d699ea17086318b7414e.png)

---

<div class="post-metadata">

**Author:** ![alfaomega6665](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/alfaomega6665/32/29614_2.png) [@alfaomega6665](https://forum.wixstudio.com/u/alfaomega6665)\
**Post date:** [August 10, 2021, 12:56pm UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/13 "2021-08-10T12:56:00Z")

</div>

I retype bad column sorry. on pic.1 you can see value of 6,00 and 8,00 and the connected to QtyXpaid and QtyXprice

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [August 10, 2021, 1:51pm UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/14 "2021-08-10T13:51:08Z")

</div>

I think i found it.

You posted an image with the text  
Hi, I did but dont work ☹

There you showed me the type of the field  
When i look closer i see it says whole numbers,  
While it dispalys 8,00 and 6,00

try to change whole numbers to decimal numbers

_Kind regards,_  
_Kristof._

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [August 10, 2021, 1:51pm UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/15 "2021-08-10T13:51:31Z")

</div>

I THink this means soemwher eyou multiply it by a decimal

---

<div class="post-metadata">

**Author:** ![alfaomega6665](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/alfaomega6665/32/29614_2.png) [@alfaomega6665](https://forum.wixstudio.com/u/alfaomega6665)\
**Post date:** [August 10, 2021, 2:59pm UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/16 "2021-08-10T14:59:40Z")

</div>

I swap to whole numbers and decimal on all inputs and this same.

 ![](https://us1.discourse-cdn.com/wix/original/3X/3/c/3cedeca405619a23cbd427f192feeb1037ef5ff6.png)

---

<div class="post-metadata">

**Author:** ![alfaomega6665](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/alfaomega6665/32/29614_2.png) [@alfaomega6665](https://forum.wixstudio.com/u/alfaomega6665)\
**Post date:** [August 10, 2021, 3:07pm UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/17 "2021-08-10T15:07:20Z")

</div>

Can you build db on your pc and try with my code? Maybe my code is bad…

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [August 10, 2021, 7:20pm UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/18 "2021-08-10T19:20:47Z")

</div>

I tried it and i don’t have any problems doing so.

What you can do is.  
Make a copy of your website  
and make me a contributor of your copied website so i can take a look at it.  
Use this [email:](email:  
[kristof.print3d@gmail.com](mailto:kristof.print3d@gmail.com)

This)  
[kristof.print3d@gmail.com](email:  
[kristof.print3d@gmail.com](mailto:kristof.print3d@gmail.com)

This)

[This](email:  
[kristof.print3d@gmail.com](mailto:kristof.print3d@gmail.com)

This) w ay i can take a look and help where needed and reply with the solution.

Be aware, i am in no way connected to wix.  
So its on your own risk (thats why i suggest making a copy and make me contributor of that website only)

Let me know if you added.

_Kind regards,_  
_Kristof_

---

<div class="post-metadata">

**Author:** ![alfaomega6665](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/alfaomega6665/32/29614_2.png) [@alfaomega6665](https://forum.wixstudio.com/u/alfaomega6665)\
**Post date:** [August 11, 2021, 8:06am UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/19 "2021-08-11T08:06:16Z")

</div>

Hi again. Thank you for helping me. I just make copy and I add you . The page is named Input. let me know If you find something wrong.

---

<div class="post-metadata">

**Author:** ![volkaertskristof](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/volkaertskristof/32/18158_2.png) [@volkaertskristof](https://forum.wixstudio.com/u/volkaertskristof)\
**Post date:** [August 11, 2021, 12:22pm UTC](https://forum.wixstudio.com/t/the-value-does-not-match/34395/20 "2021-08-11T12:22:33Z")

</div>

Hi NajcargS,

**It took a while but i found a solution.**

Seemslike an element isn’t updated to the dataset if the element is filled by code.  
So i removed the link with the submit button,  
added the 2 elements to the dataset and saved it.  
This seems to be working fine.

_Kind regards,_  
_Kristof_

[Next page](https://forum.wixstudio.com/t/the-value-does-not-match/34395.md?page=2)
