HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Clarification needed for function CheckBox
That CheckBox function behaves exactly the other way around than I would expect it. Could anybody enlighten me and help me find the correct point of view in order to understand why it is working like that? $Sender->Form->CheckBox( 'TestFieldTrue', 'Test Field True', array('value' => true) // Shows an unchecked… -
Re: Clarification needed for function CheckBox
-
Re: Clarification needed for function CheckBox
-
Re: Clarification needed for function CheckBox
Well, if I'm just doing it the wrong way, I'm simply doing it wrong. It might be nice not to confuse people who are already heading in the wrong direction, but it is not needed. Maybe some more comments in the @param array $Attributes line would be more helpful. Since a checkbox in most cases denotes true/false, I'd love… -
Re: Clarification needed for function CheckBox
I guess it is that piece of code: if ($this->GetValue($FieldName) == $Value) $Attributes['checked'] = 'checked'; GetValue returns "false" by default. So if my Checkbox has no values, GetValue returns "false". If I set the value to "false", the above equation is true and therefore the checkbox gets checked although it… -
Re: Clarification needed for function CheckBox
what happens if you use - just wondering if this works or works as you expect. $Sender->Form->CheckBox('TestFieldFalse','Test Field False',array('checked' => "checked") as far as value - the way I see it working in other vanilla staff checkbox core stuff array('Value' => 1) - is unchecked see registration forms. $Value =…
6 results