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