You need to sign in to do that
Don't have an account?
SSRS2
Html input checkbox render problem
If use
<input type="checkbox" value="Bike" checked="{IF(false,'checked' ,'')}"/>
Always checkbox is checked. But it should be unchecked
If use
<input type="checkbox" value="Bike" checked=""/>
Checkbox is unchecked
What is the different of
checked="{IF(false, ‘checked' ,'')}" & checked=""
How I toggle checked state dynamically with a custom condition ?.
(Salesforce.com API VF page version is 19.0)
-Suresh
Use the following:
I think the browser expects the string "checked" rather than a property name checked. This will rendered 'checked' if the condition evaluates to true.
Dear Bob
I checked your code stuff.
But it is not save with Salesforce.com API VF page version is 19.0
I think your API version is bellow 19.0
It gives a compile error
Error: Element type "input" must be followed by either attribute specifications, ">" or "/>".
thanks
-Suresh
Why not use:
???
http://community.salesforce.com/t5/Visualforce-Development/Can-I-do-checkbox-in-VF-this-way/td-p/173420
Following code rendered with selected
But following rendered without selected
How to change dynamically selected state ?
You need to use outputpanel to switch dynamically.
See http://boards.developerforce.com/t5/Visualforce-Development/input-radio-checked-problems-bug-Is-there-a-workaround/m-p/271203#M34840