1.Based on condition i fired alert from Jsp, alert working properly, control is not stop after that.
<script type="text/javascript">
alert("value Exist");
return false; // Control is not returning from here,
</script>
2. I gave listener in dialog, to trigger alert, it's working and control stop there itself.
but each and every time am getting alert.
In Jsp:
<script type="text/javascript">
function alerting(dialog){
alert("value Exist");
}
</script>
In dialog.xml i gave
<listeners jcr:primaryType="nt:unstructured"
beforesubmit="function(dialog){alerting(dialog); return false;}"/> --> am getting alert in all the times, when i press ok.
Please, guide me to get alert when condition satisfied.not on all the times.