You need to sign in to do that
Don't have an account?
atall
Checkbox in rendered
Hi Everyone
I've created a checkbox in Visual force somewhere in the VF Page, now my requirement is to use the same field in the rendered expression in the same VF Page.
If I've created a field in declarative method, we can call the field with its API Name (ex: Check_Box__c)
But I'm not getting how to use a field that is created in the VF Page
ex: I've created a field "Check Box" in the VF Page which doesnot have any API Name to use it in another tag.
Please suggest me in this regard else let me know if you have any questions.
Do you have a controller property that is backing the checkbox?
No, I didnt use Controller here..
Could you please send me the code
Please go through the below screenshot where my object name is Voter Login, Checkbox that I want to check is "I accept the above terms and conditions", "Voter Login" is the "Page Block" which I want to appear or disappear based on the checking or unchecking the "checkbox"
Please help me in this regard.
Thanks in advanced.
Ah, in that case you'll need to write some javascript to show/hide the section. I don't have any code to send you I'm afraid, but the following google search should give you some pointers:
https://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=show+hide+div+javascript