I am new to Lightning framework. I imported lightning design system files into the visualforce page. Now I wan to use apex:inputfield with lightning design.

I don't want to use html tag because I don't know the type of input. Like apex:inputfield display input tag based on type of value in "value" attribute. You don't explicitly have to mention the type of input field.

What Do I have to do to achieve the same.

Any help is appreciated.


No. You don't use ui components, but use force components.
Example is below and you can find it in auradocs.

<aura:attribute name="account" type="Account" default="{ sobjectType: 'Account' }"/> 
<force:inputField value="{!v.account.Name}" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.