Conditional render using checkbox not working

  • 1
  • Problem
  • Updated 2 years ago
I have a simple Image component that is displaying an image, it is works fine except when I add conditional Rendering to it using a custom field, the custom field is a check box and have the logic set as, 

Source Type:  Model Field value
Source Model: Proposal
If no Rows in Model: Ignore this condition
Field: Page_5_c
Operator: =
Content : Single specified Value
Value: Checked (box with a check)

The desired effect is that I want to show the image when the box is checked in Salesforce and not show the image if it is not checked.

I have found that changing around the operator sometimes makes the image show. I have other images that have same render values and they work fine. 

I read on here that maybe it is something weird that Skuid is doing with checkboxes as in treating them link a string rather than a boolean(link here -> https://community.skuid.com/skuid/topics/conditional-rendering-issue-model-condition-on-checkbox-fie...

I'm new so any help would be great.
Photo of Brandon

Brandon

  • 110 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,200 Points 5k badge 2x thumb
Brandon,

What you're doing should work (I was able to create a test page with a custom checkbox, and an image rendered fine based off of it). What other kind of operator options do you see when you set up a render condition? Does your model always have rows? If it doesn't that would mess with the render condition.

Thanks!
Amy