Number - editable field

I have many fields in a form that are number and editable. If the users enter the number, hit the enter key and then save the form. The document does not open. It says “cannot convert text to number”. I am assuming because of the user clicking the enter key. I can remove the value in the field and open the document, but is there a way to prevent this? Thanks.

Subject: number - editable field

You could try using the validation to make sure a number is entered.

The enter key has nothing to do with the problem. Do you have any code which is trying to work with these fields?