Quote:If you want the choices of Yes or No, You will want the following code in the On Element Immediate Change event of the Checkbox
If @IsBlank(ThisElement) Then
{
ThisElement = 1
}
Ray, I'm having a little trouble understanding this.
If I'm reading your code right, it seems to say "If the element is immediately cleared, turn it back on (yes)". So either I'm reading it wrong or I'm just confused about states. Or both.
I have the following code in my checkboxes OEIC, from a previous thread.
// Only allows a YES checkbox toggle (clears it if NO)
IF ThisElement <> 1
THEN
{
Clear(ThisElement)
}
What I'm trying to do is, if a user unchecks a box he makes it "No". I'm assuming that the default value for all boxes, before any checking or unchecking, is "No". What I want is for all my boxes to be "No" unless checked.
Help with understanding this would be appreciated. I apologize if I've derailed the thread, as I know the original poster had a different objective. Thanks!