Before this commit, following this flow: - Add a form - Add a selection field - Add an option starting with a number - Save => The created form's option value is only the number From the website_form options, the options HTMLElement of a form field are generated using the field's records ids for their html element value attribute (see FormEditor._renderField). When [1] refactored the website_form options to use a generic ListUserValueWidget, the list records id computation changed to use parseInt instead of strings. This commit changes the detection of parsable int to match only strings that are made only of digits, and less than 16 of them so that their value is not lost. [1]: https://github.com/odoo/odoo/commit/9304f8fa7bb94f21dd4caa83f9679ffd1642691b opw-2980760 closes odoo/odoo#108248 X-original-commit: 166f4aa4d23a01901585b60d69fac47fe70b7ebe Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com> Signed-off-by: Benoit Socias (bso) <bso@odoo.com> Co-authored-by: Younn Olivier <yol@odoo.com>