I have a visualforce page to create a record. I use SLDS. Problem is, when i try to save record with filled form, the inserted data is not binded with new record. note: I use a standard controller
example of my form field:
<apex:form>
<apex:pageBlockSectionItem>
<div class="slds-form-element slds-m-bottom--small">
<label class="slds-form-element__label" for="buildingName">
<abbr class="slds-required"
title="required"><b>*</b></abbr>{!$ObjectType.Building__c.fields.Name.Label}
</label>
<div class="slds-form-element__control">
<!--<apex:inputField value="{!Building__c.Name}" />-->
<input type="text" id="buildingName" class="slds-input" value="{!Building__c.Name}"/>
</div>
</div>
</apex:pageBlockSectionItem>
<apex:commandButton action="{!save}" value="Save" id="saveButton"/>
</apex:form>
but when i use <apex:inputField value="{!Building__c.Name}" />
, instead of SLDS <input>
, my record will be successfuly saved with inserted name. Usind SLDS, all fields will be blank on new record, except required field which will be auto populated with some random id i quess.