You need to sign in to do that
Don't have an account?
Sandra Ortiz
Display blocksection with input fields based on another field value
I need help displaying the items found within the outputPanel only when my Hours_Type__c field = "Billable"
Any help would be appreciated. I
Any help would be appreciated. I
<apex:page standardController="Work_Order__c"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script> window.onload = function(){ $('input[id$="ReopenTrue"]').prop('checked',true); }; </script> <apex:form > <apex:pageBlock title="Reopen Work Order: {!Work_Order__c.Name}"> <apex:pageBlockSection title="Reopen Information" columns="2"> <apex:inputField value="{!Work_Order__c.Reopen_Reason__c}" required="true"/> <apex:pageBlockSectionItem dataStyle="display:none;" > <apex:inputField value="{!Work_Order__c.Trigger_Reopening__c}" id="ReopenTrue"/> </apex:pageBlockSectionItem> </apex:pageBlockSection> <apex:outputPanel id="Outputs"> <apex:pageBlockSection title="Billing Information" columns="1"> <apex:pageblocksection ><b>Current Work Order is set to "{!Work_Order__c.Hours_Type__c}" with Non-Billable Reason of "{!Work_Order__c.Non_Billable_Reason__c}"</b> </apex:pageBlockSection> <apex:inputField value="{!Work_Order__c.What_is_Hours_Type_on_the_Reopened_WO__c}" required="false"/> <apex:inputField value="{!Work_Order__c.What_is_the_Non_Billable_Reason__c}" required="true"/> </apex:pageBlockSection> </apex:outputPanel> <apex:pageBlockButtons > <apex:commandButton action="{!save}" value="Reopen Work Order"/> <apex:commandButton action="{!cancel}" value="Cancel"/> </apex:pageBlockButtons> </apex:pageBlock> </apex:form> </apex:page>
Teddy Mwangi