Copied to clipboard

Flag this post as spam?

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


  • athenasumit 18 posts 69 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 1737 posts 6098 karma points MVP c-trib
    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 18 posts 69 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