function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
atallatall 

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.

bob_buzzardbob_buzzard

Do you have a controller property that is backing the checkbox?

atallatall

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.

bob_buzzardbob_buzzard

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