Tags:
create new tag
, view all tags

Question

. I do have a custom form. I would like to make some of the fields in this form as required. Is there any way to do that?

  • TWiki version: 01 dec 2001
  • Web server: apache
  • Server OS: nt workstation 40
  • Web browser: ie 6.0
  • Client OS: win xp

-- SergeiPushnof - 08 Apr 2002

Answer

Hi Sergei, this is currently not possible for TWikiForms.

If you have a form embedded in a TWiki topic then you can use JavaScript logic to do that. For example, intercept the button pressed event like <input type="submit" onClick="checkFormFields();" />, and do the check in the function. The function can return false to cancel the action. Any JavaScript book can give you more details. Note that this will not work for browsers with disabled JavaScript.

-- PeterThoeny - 11 Apr 2002

Topic revision: r2 - 2002-04-11 - PeterThoeny
 
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.