You need to sign in to do that
Don't have an account?
AmyJones
Hide text on visualforce page
I am making some changes to a visualforce page
Currently a certain section is hidden if Service = Initial
I need to change it so it is hidden if Service = Initial OR Smart
<apex:outputLabel value="No of Guarantors: " style="align:left" rendered="{!if((leadTrType != 's' && UPPER(leadService)!='INITIAL'),true,false)}"> </apex:outputLabel> <apex:selectList tabindex="83" value="{!selectedNoGuarantors}" size="1" disabled="{!if(IsNextForApp,true,false)}" rendered="{!if(leadTrType != 's' && UPPER(leadService)!='INITIAL',true,false)}">
Currently a certain section is hidden if Service = Initial
I need to change it so it is hidden if Service = Initial OR Smart
<apex:outputLabel value="No of Guarantors: " style="align:left" rendered="{!if((leadTrType != 's' && UPPER(leadService)!='INITIAL'),true,false)}"> </apex:outputLabel> <apex:selectList tabindex="83" value="{!selectedNoGuarantors}" size="1" disabled="{!if(IsNextForApp,true,false)}" rendered="{!if(leadTrType != 's' && UPPER(leadService)!='INITIAL',true,false)}">
I found an article where in they are showing conditional rendering of the html but one way I could think of is sending a boolean value for the dom from controller so that you can check in the controller if the values of service is initial or smart.
>> https://help.salesforce.com/articleView?id=000324662&type=1&mode=1
In case if this was helpful in your scenario can you please close the thread by marking this as the best answer as it would help others in the future and also helps in keeping our community clean.
Regards,
Anutej