You need to sign in to do that
Don't have an account?
Rakesh R
Modal is not open on button click
Hi Guys,
I just open a modal on button click but its not opening.
My codes are below.
<button class="btn btn-btn-size1 btn-purple m-t-25" data-toggle="modal" data-target="#modalEnroll" >
<span class="text-upper black text-center">
Cadastrar Paciente no<br></br> programa Humanizar
</span>
</button>
controller.js
openModalNewPatient : function(component, event, helper) {
$('#modalEnroll').modal('show');
}
here modalEnroll is the modal id, which i want to open.
Please help me.
Thanks in advanced.
I just open a modal on button click but its not opening.
My codes are below.
<button class="btn btn-btn-size1 btn-purple m-t-25" data-toggle="modal" data-target="#modalEnroll" >
<span class="text-upper black text-center">
Cadastrar Paciente no<br></br> programa Humanizar
</span>
</button>
controller.js
openModalNewPatient : function(component, event, helper) {
$('#modalEnroll').modal('show');
}
here modalEnroll is the modal id, which i want to open.
Please help me.
Thanks in advanced.
Greetings to you!
Please refer to the below links which might help you to create a custom lightning Modal/Popup Box in the salesforce lightning component.
http://www.sfdcpoint.com/salesforce/modal-popup-lightning-component-salesforce/
https://www.biswajeetsamal.com/blog/modal-box-in-lightning-component/
http://amitsalesforce.blogspot.com/2018/09/modal-popup-in-lightning-component.html
http://sfdcmonkey.com/2017/04/15/modal-box-lightning-component-salesforce/
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas