True/false field displays 1/0 instead of true/false

Csaba B_rsics
Tera Contributor

Hi! 

I have a True/False field on one of my form and my problem is, every time I change the field to either true or false it displays 0 or 1 instead. In the XML view I can see the true and false value but on the form and list it displays 1 or 0.

Anyone has ever encountered with this problem? I checked all the BRs and CS and UI policies there are no rules for that field.

12 REPLIES 12

Hi @Csaba B_rsics 

 

Look like you configuration is wrong 😞

 

Please check OOTB 

like

LearnNGrowAtul_0-1707735740811.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Servicenow34
Tera Guru

Hello @Csaba B_rsics 

can you share the dictionary record of this field ?

 

Thank you!

 

Hi @Servicenow34 !

Képernyőfotó 2024-02-12 - 11.33.28.pngKépernyőfotó 2024-02-12 - 11.33.55.png

Hi @Csaba B_rsics 

 

Can you try by changing the choices value as 0 and 1 instead of true and false?

 

Kindly mark helpful/accepted if assists.

Thank you!

 

Maddysunil
Kilo Sage

@Csaba B_rsics 

you can configure the dictionary entry for your field to provide display values.

  • Navigate to "Dictionary" in ServiceNow.
  • Find and open the record for your True/False field.
  • Look for the "Display Values" related list.
  • Add two entries: one for "True" with a value of 1 and another for "False" with a value of 0.

After making these changes, when you view the field in the form or list, it should display "True" or "False" instead of 1 or 0.

 

If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful."