Loading
×Sorry to interrupt
CSS Error
Aura Component

Input Phone

  • Deprecated as of API version 47.0. We recommend migrating to Lightning Web Components and using the lightning-input component.

    Descriptor

    ui:inputPhone

    Targets

    Lightning Experience, Experience Builder Sites, Salesforce Mobile App, Lightning Out / Visualforce, Standalone Lightning App

Example Options

Using ui:inputPhone

You entered:

Code

<aura:component> <ui:inputPhone aura:id="phone" label="Phone Number" class="field" value="415-123-4567" /> <ui:button class="btn" label="Submit" press="{!c.setOutput}"/> <div aura:id="msg" class="hide">	You entered: <ui:outputPhone aura:id="oPhone" value="" /> </div> </aura:component>
Component
Controller
CSS
Example
Documentation
Specification