Leading zeros disappear after recording

======== TEMPLATE BUG FORM ========

Wappler Version : 6.2.1
Operating System : ubuntu
Server Model: amd r7
Database Type: postgre
Hosting Type: localhost

save it and open again

This is not a bug my friend…

As long as you type ONLY numbers straight to this INPUT PARAMETER field it is ALWAYS considered a number so no front zeros will ever be saved there.
I suppose you try to pass there a string full of digits…


You can click the lignting bolt, switch to CODE view and type there your digits ENCLOSED in single quotation
eg. ā€˜00010’
Save it and you are ready.

I thought about that
I created a test api receiving the value as a string
no validations


OK
this was the workaround adopted
but I thought I should be notified

I didn’t notice this behavior
I spent time looking for a problem that didn’t exist in data processing

I’m sorry… I missed the parenthesis!
this is the required format in order to ā€œtestā€ a full digit string:
image

What you describe has to do with validation (on server or client side)…
Of course you have to do that in order to restrict the passed parameters.

Fixed in Wappler 6.2.2