• Calvin Barr
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
Hi - I want to be able to add a custom block of text based on the status of a checkbox for a document. 

I added the following pageblock information in the place in the contract where the I want the text to conditionally appear, but I keep getting an error on the input field. Do I need to add something to controller or header?

Much appreciated 

<apex:page standardController="Contract"
-
-
-
<apex:pageBlock id="theBlock">
   <apex:inputCheckbox value="{!My_Checkox__c}">
      <apex:actionSupport event="onchange" rerender="theBlock"/>
   </apex:inputCheckbox>
      <apex:inputText value="THE TEXT I WANT TO DISPLAY" rendered="{!(My_Checkox__c == true)}"/>
</apex:pageBlock>
-
-
-
</apex:page>