"#input4" is a number field data entry user in a form. When I save it with $w("#input4").value, it save it in the collection as a text. That's an issue because the field type in the collection is a number.
the valueOf() worked perfectly, but than I start getting the error "Cannot convert undefined or null to object".
How I can get a numeric value?