I am trying to set an integer value to a user input text box and submitting it to a field of type number.

I am trying to achieve input from users using custom form. So I have connected the required field to the input text boxes. But am also assigning a number based on the button they have clicked. Now when I use
$w(‘#input10’).value = 5 ; //it assigns the value to the input box but as a STRING and not NUMBER

As the value 5 that I assigned is not a number type data , hence there is an error while submitting.
The rest of the data is inserted in the dataset but only the number field says that ’ The value doesnot match the type Number’ . I understand that $w(’ #input10 ').value = 5 only accepts string but is there a work around to achieve this.

2 Likes

Did you ever get a fix for this?

I’m having the same issue. I tried to parsefloat the “number”, but still doesn’t work