Tags:
create new tag
, view all tags

Question

I've created a comment template for capturing user input. How can I make some fields of the comment template mandatory so that the user is unable to submit the comment form with an empty field. I tried to validate my comment template fields via a Java Script function that I downloaded from the following site:

http://www.javascript-coder.com/html-form/javascript-form-validation.phtml

But CommentPlugin writes the comment without validation.

Environment

TWiki version: TWikiRelease04x01x01
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache
Perl version: 5.8
Client OS: Windows XP
Web Browser: Firefox, IE
Categories: Forms, Javascript, Missing functionality, Plugins

-- AlokNarula - 15 Mar 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

adding link in CommentPluginDev

-- SvenDowideit - 28 Apr 2007

Sorry, closing this after more than 30 days inactivity; re-open if needed...

-- PeterThoeny - 02 Jun 2007

 
Change status to:
Topic revision: r3 - 2007-06-02 - 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.