You need to sign in to do that
Don't have an account?
adarsh john
Checkbox field value not getting retrieved in the lightning component
Hello all,
I have a checkbox field in my custom registration form for the community users.
Lightning component:
<aura:attribute name="explicitOptIn" type="Boolean" required="false" default="false"/>
<div id="sfdc_opt_in_container" class="sfdc">
<ui:inputcheckbox aura:id="checkbox1" value="{!v.explicitOptIn}" change="{!c.oncheck}" class="input sfdc_explicitOptIn sfdc"/>
Privacy Policy.
</div>
Lightning controller Helper
oncheck: function(component,event,helper) {
var checkbox = component.find('checkbox1').get('v.value');
component.set("v.explicitOptIn",checkbox);
}
I am getting an error as "This page has an error. You might just need to refresh it. Unable to find action 'oncheck' on the controller."
Could somebody please help here on this.
I have a checkbox field in my custom registration form for the community users.
Lightning component:
<aura:attribute name="explicitOptIn" type="Boolean" required="false" default="false"/>
<div id="sfdc_opt_in_container" class="sfdc">
<ui:inputcheckbox aura:id="checkbox1" value="{!v.explicitOptIn}" change="{!c.oncheck}" class="input sfdc_explicitOptIn sfdc"/>
Privacy Policy.
</div>
Lightning controller Helper
oncheck: function(component,event,helper) {
var checkbox = component.find('checkbox1').get('v.value');
component.set("v.explicitOptIn",checkbox);
}
I am getting an error as "This page has an error. You might just need to refresh it. Unable to find action 'oncheck' on the controller."
Could somebody please help here on this.
i have tried with below code:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
All Answers
i have tried with below code:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh