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

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2002-04-11 - 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.