Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

RSForm!Pro - Overwrite the calendar date selection event

Overwrite the calendar date selection event

Since revision 34 we have added a new function: rsfp_onSelectDate(), that can be used in order to increase the functionality of the calendar used by RSForm!Pro. You will have to define this function inside your form, by going to the CSS and Javascript tab and adding the script between the tags. The following example will display an alert message when a certain date is selected from a pop-up calendar:

<script type="text/javascript">
function rsfp_onSelectDate(param1)
{
	if(param1 == "31.12.2010") 
	{
		alert("Happy New Year!");
		return true;
	}
	else return false;
}
</script>

In the above example the rsfp_onSelectDate() function is triggered when you click on a date from the pop-up calendar. If you select any other date other than 31.12.2010 the function will return false and the date will not selected. When you choose the correct date, an alert message will be displayed and the value you have selected will be added in the calendar field's input box.

Feedback