[Form] Fixed behavior of the Percent Type

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9179
| License       | MIT
| Doc PR        | -

This correction contains a unit test for PercentType and a explicit conversion to integer on fields created with data type as integer.