bug with boolean field in K12

Peter Mogilnitski asked on June 20, 2019 22:20

if you define a Boolean field with default value not set and use radio buttons as control with list of options like this:

;inhert
1;show
0;hide

If will not show correctly the value from DB after you save your page for example: If you set it to hide and save your page - it shows as inherit although in DB it is 0. if you save it again it becomes null. This problem didn't exist in Kentico 9, I just checked... but appeared in K12.

Here is the video https://prntscr.com/o4k7gu

Correct Answer

Peter Mogilnitski answered on June 25, 2019 15:38

For those who came across this problem you have to move ;inhert at the end of the list

1;show
0;hide
;inhert

the UI will behave as expected.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.