Alert Message

Alert Message

Hi,

I have created a stateless form with 2 fields From date and To Date. When I give an alert to display the dates OnClick button of the form it does not display anything.

However the same alert if I place On User Input of From and To date it shows the alert.

I am not able to understand why the alert does not show on OnClick of the button.

Can someone clarify.

Regards,

Milind