NetTalk Central

Author Topic: Display PlaceHolder or empty field for numbers  (Read 5065 times)

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Display PlaceHolder or empty field for numbers
« 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

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Display PlaceHolder or empty field for numbers
« Reply #1 on: April 08, 2019, 01:11:20 AM »
Have you tryed @n6.2B ?

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Display PlaceHolder or empty field for numbers
« Reply #2 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Display PlaceHolder or empty field for numbers
« Reply #3 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

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Display PlaceHolder or empty field for numbers
« Reply #4 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