function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AmyJonesAmyJones 

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)}">
ANUTEJANUTEJ (Salesforce Developers) 
Hi SteveMoss,

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