• Carol Vesson
  • NEWBIE
  • 0 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi,

I have a visualforce page code below. Basically a checkbox and a input text, by click checkbox, show inputtext, uncheck it, not show input text. It works perfectly fine when edit a record. But when I create a new record, it isn't working. Any ideas?
         
               <apex:outputPanel id="otherPrograms">  
                     {!OSFS_Grad_Student_Supplement__c.Other__c}       
                        <apex:pageBlockSectionItem >
                            <apex:inputcheckbox value="{!OSFS_Grad_Student_Supplement__c.Other__c   }" id="Other">
                                <apex:actionSupport event="onchange" rerender="otherPrograms" />
                            </apex:inputcheckbox>
                            <apex:outputLabel value="Other (List Program:)" for="Other"/>
                        </apex:pageBlockSectionItem>
                       
                        <apex:pageBlockSectionItem >
                            <apex:InputField value="{!OSFS_Grad_Student_Supplement__c.Other_Programs__c}"  rendered="{!OSFS_Grad_Student_Supplement__c.Other__c}" />
                        </apex:pageBlockSectionItem>
       
                    </apex:outputPanel>