
I'm working on showing/hiding content based on the value of a drop down. I know I can do with with a checkbox, unfortunately, the checkbox method breaks down in a repeating section (I want a single entry to affect the entire sheet, so I started using a checkbox that was visible at the top of the sheet and hiding that same check box at various points on the sheet itself to hide various things--it worked great until repeating sections).
So, then I thought if there was a way to keep that value in a repeating section I could do that, but unfortunately, calculated fields only work with numbers (and a checkbox is On or 0), so that never worked. That was when I came up with the idea of a drop down where I can set values of 1 (on) and 0 (off), and then I could have an input field that points to the value of that selection.
Here's the CSS I attempted but it didn't work:
Is there any way to get this to work?
Thanks.
So, then I thought if there was a way to keep that value in a repeating section I could do that, but unfortunately, calculated fields only work with numbers (and a checkbox is On or 0), so that never worked. That was when I came up with the idea of a drop down where I can set values of 1 (on) and 0 (off), and then I could have an input field that points to the value of that selection.
Here's the CSS I attempted but it didn't work:
input.sheet-NewDieType[value^="1"] + *.sheet-dtypedropdown { display:inline-block; }I got the idea for doing the value like that from the way tabs work, but apparently it doesn't translate here. :)
Is there any way to get this to work?
Thanks.