Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<apex:inputField value="{!account.name}" required="true" rendered="{!if(condition, true, false)}"/>
<apex:inputField value="{!account.name}" required="false" rendered="{!if(condition, false, true)}"/>
^^^^ Include two different inputfields, render one or the other based on condition.
<apex:inputField value="{!account.name}" required="true" rendered="{!if(condition, true, false)}"/>
<apex:inputField value="{!account.name}" required="false" rendered="{!if(condition, false, true)}"/>
^^^^ Include two different inputfields, render one or the other based on condition.