true/false field showing 0 as default value
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2024 10:13 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2024 11:02 PM
Hi @Ak8977 ,
- Basically you are creating new field called true/false which only only values 0 or 1
- 0 is false, 1 is true
- Its not recommended to show --None-- with true/false type variable. It defaults to 0 only, meaning false in backend.
- 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..:)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2024 11:34 PM
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.
Hope this fixes your issue.
Thanks.