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 someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2007-06-02 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.