Remove NaN from text field

Any chance to remove that NaN from text input?

i have a button to clear all form but those 3 stays NaN

thank you

Use a ternary on the
{{informacionlaboral.data.salariobrutomensual[0]?parseFloat(informacionlaboral.data.salariobrutomensual[0].toFixed(2):''}}
This will check if there is any value and if so then parse it if not show a blank.... the problem here is that if any value comes back and is NOT a Number then the same issue will occur... MY question would be then why are you returning any value but a number? If this is the case....

1 Like

Yeah thats the issue im using a db from another dev it have. Text type fields i move it to decimal and now works good thank you