• 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: Preview Data before Submit - Birthday Field Howto?

Preview Data before Submit - Birthday Field Howto? 6 months 2 weeks ago #43023

Hi,

I did everything according to this Support page under "Custom Scripting".

Works really well. Except I need it to display a Birthday field in the summary. I can't make it work with the code provided. Somebody help?
document.getElementById('birthdayPreview').innerHTML = document.getElementById('Birthday').value;


Thanks in advance

Don
The administrator has disabled public write access.

Preview Data before Submit - Birthday Field Howto? 6 months 1 week ago #43033

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 722
  • Thank you received: 59
Hello,

This is due to how the Birthday type field is composed, instead of a single field there are three fields to hold the day, month and year. If your field is named "birthday" then please try using:

document.getElementById('birthdayPreview').innerText = document.getElementById('birthdayd').value +'/'+ document.getElementById('birthdaym').value +'/'+ document.getElementById('birthdayy').value;
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.
  • 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!