true/false field showing 0 as default value

Ak8977
Tera Expert

Hello all,

I created a true/false type field with choice as drop down with none.
After creating the field for existing records it was showing 0 as the default value instead of none.
How i can fix it.

Thanks,

2 REPLIES 2

Sohithanjan G
Kilo Sage
Kilo Sage

Hi @Ak8977 , 

 

  1. Basically you are creating new field called true/false which only only values 0 or 1
  2. 0 is false, 1 is true 
  3. Its not recommended to show --None-- with true/false type variable. It defaults to 0 only, meaning false in backend.
  4. To have a clear setup, you can go for choice type & add True & False with backend name as 0 or 1 with dropdown as none, to get what you expect.

🙂

Please mark as Accepted Solution if this solves your query and HIT Helpful if you find my answer helped you. This will help other community mates too..:)

Mitesh L Pitrod
Tera Contributor

Hello,

If you have a requirement to create a dropdown field instead of a checkbox, 

Create a field with type as choice and add the choices as

1. True

2.false

and then set the choice as dropdown with none.

MiteshLPitrod_0-1709623991210.png

Hope this fixes your issue.

 

Thanks.