• 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: Parsing Date when Preview Data Before Submit

Parsing Date when Preview Data Before Submit 13 years 1 month ago #16661

  • ounyai
  • ounyai's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
Hi,

I am attempting to use a multi page form to preview data before submit, but when the script tries to parse the date it breaks the script.

How can we parse a date field when using preview data before submit. If I use the function document.getElementById('dateP').innerHTML = document.getElementById('date').value; for example, it breaks the script and returns a null value.

This is using the built in Calendar option.
The administrator has disabled public write access.

Re: Parsing Date when Preview Data Before Submit 13 years 1 month ago #16669

  • ounyai
  • ounyai's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 1
SOLVED

The element id is not the same as in the RSForm settings as you would expect. The calendar names the id of the date field to something different, you will need to use Firebug to find out the name of the field and substitute it with the correct one in the javascript code.
The administrator has disabled public write access.
The following user(s) said Thank You: Raduol

Re: Parsing Date when Preview Data Before Submit 13 years 1 month ago #16851

  • Raduol
  • Raduol's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Thanks Mate,
This had me up the whole weekend.... :)
The administrator has disabled public write access.

Parsing Date when Preview Data Before Submit 10 years 8 months ago #28510

  • office987
  • office987's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
Another thanks!

In my case the date line now reads:

document.getElementById('dateP').innerHTML = document.getElementById('txtcal5_1').value;

Cheers
Ric
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!