次のサンプルコードは、条件に基づいて Visualforce ページを表示する方法の例を示しています。
<apex:pageBlock id="xxxpb1">
<apex:pageBlockSection>
<apex:actionRegion >
<apex:inputField id="xxxif1" value="{!Object.picklistfieldapiname1}" required="true" >
<apex:actionSupport event="onchange" rerender="xxxpb1" />
</apex:inputField>
</apex:actionRegion>
</apex:pageBlockSection>
<apex:pageBlockSection id="xxxpbs1" rendered="true">
<apex:inputField id="xxxif2" value="{!Object.Fieldtobedisplayed1}" rendered="{!IF(Object.picklistfieldapiname1 ='picklist value 1' || lead.Buyer_Type__c ='picklist value 2' ,true,false)}"/>
</apex:pageBlockSection>
<apex:pageBlockSection id="xxxpbs2" rendered="true">
<apex:inputField id="xxxif3" value="{!Object.Fieldtobedisplayed2}" rendered="{!IF(Object.picklistfieldapiname1 ='picklist value 3' || lead.Buyer_Type__c ='picklist value 4' ,true,false)}"/>
</apex:pageBlockSection>
</apex:pageBlock>
上記のコードブロックでは、表示条件が満たされた場合にのみ Visualforce ページに項目を表示します。
これはサンプルコードであり、ビジネス要件に従ってカスタマイズする必要があることに注意してください。
000385110

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.