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.


1 Answer 1


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}" />

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .