BUG? checkbox “Selected Style" error when onload


#1

I set “Selected Style” and Checked “Selected”
When I preview,The text in the checkbox is the default color.
The color is correct after I click the checkbox twice

checkbox selected style error when onload.rp (52.7 KB)


#2

Yes, I’d call that a bug. I can’t imagine anyone expecting it to work that way.

I seem to recall running into this when I needed to specify default selection states for checkboxes and radios. Things that look correct in the editor but not so in prototype, or visa versa. I tend to turn “offending widgets” into dynamic panels with states for all visual styles …and build them by hand–also usually needed to get the VX correct.

Here’s an updated file with some tests and workarounds. I duplicated your checkbox with these changes:

  • Checkbox 2

    • Set default as Unselected
    • Assigned Loaded event with:
      Set Selected/Checked
      This to "true"
    • Works and looks correct in prototype, but not in editor
  • Checkbox 3

    • Kept default as Selected
    • Assigned same Loaded event
    • Looks correct in editor, but not in prototype …so no different from #1
  • Checkbox 4

    • Kept default as Selected
    • Assigned Loaded event with:
      Set Selected/Checked
      This to "false"
      Set Selected/Checked
      This to "true"
    • Works and looks correct in both editor and prototype

checkbox selected style error when onload.rp (55.6 KB)


#3

Although I still think it’s a bug, your solution is fine.

If the checkbox has a “selected or unselected” interaction, it will cause some extra actions.

checkbox selected style error when onload.rp (56.3 KB)

Hope it gets fixed soon.


#4

Yup it is just a bug. Came across with these stuffs before and here is a universal solution to similar situation:
just add a “page loaded” interaction to the background and set the check box selected and everything will be fine.