Incomplete data when registering number 0 'zero' at the beginning

Buenas tardes con todos.

Agradecería su ayuda para resolver mi inconveniente. Resulta que genere mi formulario y añadí para que se pueda registrar el número de dni o cedula como le llaman en otros paises. Un ejemplo de ello es que al ingresar y enviar el registro 02445125, solo se muestra 2445125 faltando el numero 0.

Que podría hacer para que el registro guarde el 0 que se incluyo al inicio. Ojo solo sucede cuando el 0 esta al inicio.

Hi @datex
Welcome to the community forum. Have you tried using the text question and applying a regex formula? You can see previous discussions below

Stephane

Hi @datex,

Have you had a look at the post discussed previously (it should solve your issue):

Looking at your 8 digit integer requirement with a 0 at the beginning, maybe your constraint should be something like:

(regex(., '^[00000001-99999999]{8}$') and (. >= 00000001))

For further understanding on regex, please feel free to have a look at our support article Restricting Text Responses With Regular Expressions. There you should see a lot of day to day useful regex codes that could make your form building process easy.

Buenos dias,

Mas o menos el problema es que no se puede utilizar los “integer” asi. Usted deberia utilizar “text” como tipo de pregunta y un “constraint” tipo regex como en el ejemplo de @Kal_Lam

1 Like

Hello,
you might also add the appearance number if you use text type. (Plus the regex). This will do some restriction during field entry already.

1 Like