<aura:attribute name="LoanStarted__c" type="Condo_Review__c" default ="{'Condo_Review__c': ''}" />
<aura:attribute name="ApplicationStarted__c" type="Condo_Review__c" default ="{'Condo_Review__c': ''}" />
I had to set them up like this for others because I couldn’t type in the textboxes for the other fields.
RadioGroup
<th scope="col" class="gap" width="500px" >
<label class="slds-form-element__label"><span class="slds-required">*</span>Has the loan been started?</label>
<lightning:radioGroup id = "select" options="{!v.options}" value="{!v.LoanStarted__c.Condo_Review__c}" onchange="{!c.handleRadioClick}" />
</th>
HandleRadioClick
({
handleRadioClick : function(){
var opts = document.getElementById('select').value;
}
})
Error:
Error
This page has an error. You might just need to refresh it. Action failed: c:Condominium_Submission_Requester$controller$handleRadioClick [Cannot read property 'value' of null] Failing descriptor: {c:Condominium_Submission_Requester$controller$handleRadioClick}
1 个回答
I will suggest you to post this question to developer board for the quick response. This community is focused on configuration and design questions.
Programming questions are best to post in one of the developer forums for a quick response here
https://developer.salesforce.com/forums/#!/feedtype=RECENT&criteria=ALLQUESTIONS
http://salesforce.stackexchange.com/
Regards,
Rajesh