Tags:
create new tag
, view all tags

Question

. I am trying to add a today's time as a default value to one of the fields of the form. I can type any text and the form will show the typed text. But the current date will never show up. I have seen a sample in ItemToDoForm. I have done the same thing, but it does not work. frown Is it a recent addition to the TWiki? Should I get a TWiki upgrade for that? Thanks a lot, Twiki newbie smile

  • TWiki version: 01 dec 2001
  • Web server: apache
  • Server OS: win nt
  • Web browser: ip 60
  • Client OS: win xp

-- SergeiPushnof - 12 Apr 2002

Answer

The ItemToDo form uses the following in the HTML form to create a new item - try this:

  <td> <input type="text" name="DueDate" size="12" value="%SERVERTIME{"$day $mon $year"}%" /> 

This should work in your release, but other variables to try include %GMTIME%.

-- RichardDonkin - 13 Apr 2002

Topic revision: r2 - 2002-04-13 - RichardDonkin
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.