Is there a way to conditionally render an apex:inputField only if the field exists on the running org?
I tried the following syntax but always ran into errors:
<apex:inputField value="{!CustomObject__c['optionalField__c']}" />
<apex:inputField value="{!CustomObject__c['optionalField']}"
rendered="{!NOT(ISNULL($ObjectType.CustomObject__c.fields['optionalField__c']))}" />
