• 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: Display User's Date Stamp

Display User's Date Stamp 10 years 9 months ago #28302

  • danhall
  • danhall's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
I'm trying to get the user's computer date stamp to display the current date in their location as the default value in two text fields on a form that I built. I found the following in a post in the forum, which gets close, but isn't quite there.
You can simply create a small javascript that will return the time stamp of your user's computer. In the CSS/Javascript tab (Javascript area), just use something like this:

<script type="text/javascript">
function utime()
{
today = new Date();
document.getElmentById('name_of_hidden_field').value = today;
}
</script>


In the Additional attributes of the submit button just add something like this:

onclick="utime();"

Anyone able to get me all the way there?

Thanks!
Dan
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!