+ Start a Discussion
Mario MikiMario Miki 

Use 2 apex:inputText or apex:inputField inside an apex:facet


I need to have 2 elements inside an apex:facet. The requirement is to render one and not the other and to toggle.
<apex:column headerValue="Value">
                                    	<apex:outputField value="{!p.Value__c}" />
                                    	<apex:facet name="footer">
                                    	<apex:outputText styleClass="slds-input" value="{!staticValueField}" id="staticField"/>
                                    	<apex:inputText styleClass="slds-input" value="{!newParameterMapping.Value__c}" id="referenceField" onclick="setParamMappingType()" /></apex:facet>

But I'm not able to get it to work. No matter what just the second one will be rendered. Is there a way to do this? any workarround?

Sukesh Kumar 33Sukesh Kumar 33
You can make use of rendered attribute in outputText and inputText