I have 2 attributes, "account" and "newContact", I want to set the default value for Account.Name for "newContact" as the value of "account" attribute, i.e. whatever will be the value of account attribute that must be assigned to Account.Name in "newContact" attribute. Can someone please help !
<aura:attribute name="account" type="String" />
<aura:attribute name="newContact" type="Contact"
default="{'sObjectType':'Contact', 'FirstName':'',
'LastName':'', 'Account.Name':'',
'Birthdate':''}"/>
Thanks in advance !!
get
orset
any attribute. Where exactly are you stuck?sobjectType
notsObjectType
it's case sensitive;