I want to override New quote
action with a Lightning component to create a record page with only fewer fields :
- Two dependant picklists ;
- One hidden field.
I have follow Trailhead Project - Build a Lightning Component to Override a Standard Action :
Here is the first step inspired from the trailhead module :
CMP quoteDialog
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId"
access="global" >
<aura:attribute name="picklistValues" type="Object" />
<c:PicklistValues sObjectName="Quote" fieldName="Modele__c"
picklistValues="{!v.picklistValues}" />
<lightning:select aura:id="quoteModele" name="quoteModele" label="Modele">
<aura:iteration items="{!v.picklistValues}" var="item">
<option value="{!item}">{!item}</option>
</aura:iteration>
</lightning:select>
<lightning:select aura:id="quoteColor" name="quoteColor" label="Color">
<option value="color">Color</option>
</lightning:select>
<lightning:button variant="neutral" label="Cancel" />
<lightning:button variant="brand" label="Submit" />
</aura:component>
I want to create the second picklist with dependencies : the Color picklist depending of the choosen modele.
some error
mentioned in your post. What is not working? – Raul Dec 20 '17 at 12:08