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.