Hi Plumsail,
I have a checkbox which runs a function that shows, hides and clears a multiline text box field. When I click the checkbox, it always clears the field which contains text.
Is there a way to warn users and make them confirm a browser dialog before it hides and clears the multiline text box field?
I'm aware of the "Confirm()" method but I don't know how to prevent hiding and clearing a multiline text field.
function ShowHideSVHealthierLivesMLTF2(){
if (FD_SVCheckboxes.value.indexOf("Healthy lives")>=0){
//hide field
$(FD_SV_HealthierLivesMLTF.$parent.$el).show();
} else{
$(FD_SV_HealthierLivesMLTF.$parent.$el).hide();
FD_SV_HealthierLivesMLTF.clear();
}
}
Thank you for your help!