• Mohith Sundar
  • NEWBIE
  • 10 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
i have a custom picklist field having values below 
   New
  Inprogress
  Working
  Closed 

I want to enforce values must be selected in order users should not be able to select the values from new to working directly could anyone help me please 
Hi All , 

Below is the code snippet  code which is highlighted in bold is not executing, i logged into to iphone then checked , code is not returning true for {!v.messages[0] can someone help pls , what wrong going through 

<aura:component >
    <aura:attribute name="messages" type="List"
                    default="['you look nice today.',
                              'Great whether we are having.',
                              'How are you?']"/>
    
    <h1> Hello Playground</h1>
    <p> Silly fun with attributes and expressions</p>
    <br></br>
    <h2> List Items</h2>
    <br></br>
    <p> <c:hellomessage message="{!v.messages[0]}"/> </p>
    <p> <c:hellomessage message="{!v.messages[1]}"/> </p>
    <p> <c:hellomessage message="{!v.messages[2]}"/> </p>
     <br></br>
    <h2> List iteration </h2>
    <br> </br>
    <aura:iteration items="{!v.messages}" var="msg">
        <p> <c:hellomessage message="{!msg}"/> </p>
    </aura:iteration>
     <br></br>
    <h2> conditional Expressions and Global value providers</h2>
    <br></br>
    <aura:if isTrue="{!$Browser.isIPhone}">
        <p> <c:hellomessage message="{!v.messages[0]}"/> </p>
    <aura:set attribute="else">
        <p> <c:hellomessage message="{!v.messages[1]}"/>  </p>    
    </aura:set>
    </aura:if>

</aura:component>
i have a custom picklist field having values below 
   New
  Inprogress
  Working
  Closed 

I want to enforce values must be selected in order users should not be able to select the values from new to working directly could anyone help me please 
Hi All , 

Below is the code snippet  code which is highlighted in bold is not executing, i logged into to iphone then checked , code is not returning true for {!v.messages[0] can someone help pls , what wrong going through 

<aura:component >
    <aura:attribute name="messages" type="List"
                    default="['you look nice today.',
                              'Great whether we are having.',
                              'How are you?']"/>
    
    <h1> Hello Playground</h1>
    <p> Silly fun with attributes and expressions</p>
    <br></br>
    <h2> List Items</h2>
    <br></br>
    <p> <c:hellomessage message="{!v.messages[0]}"/> </p>
    <p> <c:hellomessage message="{!v.messages[1]}"/> </p>
    <p> <c:hellomessage message="{!v.messages[2]}"/> </p>
     <br></br>
    <h2> List iteration </h2>
    <br> </br>
    <aura:iteration items="{!v.messages}" var="msg">
        <p> <c:hellomessage message="{!msg}"/> </p>
    </aura:iteration>
     <br></br>
    <h2> conditional Expressions and Global value providers</h2>
    <br></br>
    <aura:if isTrue="{!$Browser.isIPhone}">
        <p> <c:hellomessage message="{!v.messages[0]}"/> </p>
    <aura:set attribute="else">
        <p> <c:hellomessage message="{!v.messages[1]}"/>  </p>    
    </aura:set>
    </aura:if>

</aura:component>