Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Create Button informs
System
Hi,
I need to have a calendar for my date field in the form.Whenever the user clicks the button, javascript calendar should pop up.How to create a button and link the button to the calendar in javascript.
Kindly Advise
Find more posts tagged with
Comments
Migrateduser
You would use a callout in your DCT. An example of this would be:
< item name="EndDate" >
< label >End Date < /label >
< description >Enter date in mm/dd/yyyy format < /description >
< text
required="t"
validation-regex="^[0-1]*[0-9]/[0-3]*[0-9]/[0-9][0-9][0-9][0-9]$" >
< cgi-callout required="t"
label="Calendar"
url="/iw-bin/iw_cgi_wrapper.cgi/dct_calendar.ipl"
window-features="width=400,height=210" />
< /text >
< /item >
In this example, dct_calendar.ipl is a Perl script which paints the calendar GUI and when the user clicks on a date in the calendar, Javascript sends the selected date to the form and the respective field is then populated with this date.