• 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: Code for date and time picker for preview page

Code for date and time picker for preview page 3 years 9 months ago #41416

  • miladox
  • miladox's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Hello, i need the code under script and under free text for date and time picker !

i tried this for script

document.getElementById('Howlonghaveyoustudiedfrom1Preview').innerHTML = document.getElementById('Howlonghaveyoustudiedfrom1').value;

and below for free text

<p><strong>D:</strong> <span id="Howlonghaveyoustudiedfrom1Preview">.</span></p>

Also the name of the field is exactly "Howlonghaveyoustudiedfrom1"

thanks a lot
The administrator has disabled public write access.

Code for date and time picker for preview page 3 years 9 months ago #41417

  • miladox
  • miladox's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Hello. Any updates ??
Last Edit: 3 years 9 months ago by miladox. Reason: Need attention!
The administrator has disabled public write access.

Code for date and time picker for preview page 2 years 2 months ago #42597

  • amheng5
  • amheng5's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
I think you need to get the code associated to that calendar when viewing live form. Use "inspect" code in your browser for the calendar field. You should see a ID code.

my calendar example code as viewed on live form page not the rsform form program:
<input id="txtcal3_0" name="form[signaturedate]" type="text" value="" class="rsform-calendar-box txtCal" aria-required="true">

so the js code:
document.getElementById('signaturedatePreview').innerHTML = document.getElementById('txtcal3_0').value;

Hope this helps
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!