Sometimes we use number fields as a numeric ID field. Unfortunately, it is a very bad idea. Such an implementation can be source of different runtime bugs.

First, instance IDs are not a subject of arithmetic manipulations. Second, some types of IDs are incremental public keys of database tables, which can be greater than JavaScript integer Number.MAX_SAFE_INTEGER. In the following example I have created simple form with two fields for ids:

Just try to set huge integers and see what will happen.