Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • athenasumit 17 posts 68 karma points
    Jul 29, 2021 @ 14:28
    athenasumit
    0

    Checkbox returning values like '0' and '1'

    I have created a custom member types and added a checkbox but when I fetch the member via Umbraco Content Management APIs then its returning values '0' and '1'. But other inherited fields like Is Approved is returning true/false. How to create such a checkbox returning Boolean?

    enter image description here

  • Huw Reddick 533 posts 1723 karma points
    Jul 30, 2021 @ 14:56
    Huw Reddick
    0

    how are you checking it's value?

    Are you doing it like this

    Model.Value<bool>("myCheckBox")
    
  • athenasumit 17 posts 68 karma points
    Jul 30, 2021 @ 17:30
    athenasumit
    0

    I am using Content Management API as shown in the image.enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft