Closed ToyinIku closed 4 years ago
Seems like it doesn't take bool type, needs to be a string
hasBlog = "false" #site does not have blog by default
if (cardFields["info_blog_c"]).upper() == "YES": #if field value is yes
hasBlog = "true" #set to true
currentCustomField.field_type = "checked"
cardCreated.set_custom_field(hasBlog, currentCustomField) #add the info_blog_c field
currentCustomField.field_type = "checkbox"
I want to check a custom fields on a card through this API but when I pass the arguments to set the values but it jumps to the else statement because the field_type value is "checkbox" and not "checked". py-trello
piece of my code
Error response
I tried this
Then got this