NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Robert Iliuta on April 07, 2019, 11:28:16 PM

Title: Display PlaceHolder or empty field for numbers
Post by: Robert Iliuta on April 07, 2019, 11:28:16 PM
Hallo!


I have a filed in a form with picture @n6.2. This field is a lookup.
When I open the form it will show 0.00. Whatever I do (prime empty, change picture with a string...) it will always show 0.00 ... instead of PlaheHolder or empty field.
I need to show empty because 0.00 it's a choice that user can select.

It's a bug ? or what can I do to show a PlaceHolder or empty field?

Thank you!
Robert
Title: Re: Display PlaceHolder or empty field for numbers
Post by: Niels Larsen on April 08, 2019, 01:11:20 AM
Have you tryed @n6.2B ?
Title: Re: Display PlaceHolder or empty field for numbers
Post by: Robert Iliuta on April 08, 2019, 01:24:44 AM
>>Have you tryed @n6.2B ?
First time :-)
But as I said 0.00 it's a choice that user can select as a value and if I put @n6.2B it will not show 0.00 value.

Robert
Title: Re: Display PlaceHolder or empty field for numbers
Post by: Bruce on April 08, 2019, 02:16:20 AM
If you set it to @n6.2 then it will always have a value ( even if 0) so a placeholder cannot be displayed.

If you set it to @n6.2B then at least there's the possibility of a placeholder - but since 0 is a legal value, you actually would want that to be displayed.

So I'm not really sure in what context the placeholder would be displayed in this case? Perhaps changing it to a string would be the best approach? Then blank is blank, and a number, even 0, is not blank.

cheers
Bruce
Title: Re: Display PlaceHolder or empty field for numbers
Post by: Robert Iliuta on April 08, 2019, 02:57:20 AM
It's about VAT. This field contain VAT.
They have a VAT 0.00 for some clients.
When I open the form I would like to show a text: Please select VAT or at least to be empty.
For VAT I need 2 decimals. I did not try with a string... but don't know it will works.
It's ok to have VAT field as a string?  If it works then the issue it's solved.

Thank you,
Robert