• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Automatically add a date to second Calendar

Automatically add a date to second Calendar 9 years 7 months ago #32599

  • joeausti
  • joeausti's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
How do you add dates to second calendar that is 1 year after first calendar? Example:
First calendar value=1 October 2015
Second calendar value=1 October 2016 (Automatically)
The administrator has disabled public write access.

Automatically add a date to second Calendar 9 years 7 months ago #32601

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
You can use the "rsfp_onSelectDate()" Javascript function for this. More details provided here:

https://www.rsjoomla.com/support/documentation/rsform-pro/customizing-rsform-pro/controlling-the-calendar.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Automatically add a date to second Calendar 9 years 7 months ago #32602

  • joeausti
  • joeausti's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
I want to put it in a hidden field. What is the javascript for adding to a date. What changes?

<script type="text/javascript">
function rsfp_onSelectDate(selectedDate)
{
if(selectedDate == "31.12.2010")
{
alert("Happy New Year!");
return true;
}
else return false;
}
</script>
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!