I have an overwritten edit page for my custom object, which have different record types with different fields.
The simplified desktop version of this VF page looks like this:
<apex:page standardController="CustomObject__c" extensions="CustomObjectCtrlExt" >
<apex:form>
<apex:pageBlock>
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons>
<!-- Record Type 1 -->
<apex:pageBlockSection rendered="{!recordtypename == 'RecordTypeName1'}" >
...
</apex:pageBlockSection>
<!-- Record Type 2 -->
<apex:pageBlockSection rendered="{!recordtypename == 'RecordTypeName2'}" >
...
</apex:pageBlockSection>
<!-- Record Type 3 -->
<apex:pageBlockSection rendered="{!recordtypename == 'RecordTypeName3}" >
...
</apex:pageBlockSection>
...
</apex:form>
</apex:page>
Now I want to create a second VF page for my mobile users with HTML 5.
How do I implement the conditional rendering with HTML 5 ?
Of course, something like <div rendered="{!recordtypename == Name1}">
doesn't work.