Tags:
create new tag
, view all tags

Question

Hi,

I am creating new topics on my twiki based on a form template.

The code looks something like this:

<form name="newtopic" action="%SCRIPTURLPATH%/edit%SCRIPTSUFFIX%/%INTURLENCODE{"%WEB%"}%/">
<input type="hidden" name="formtemplate" value="IssueCategoryForm" />
<input type="hidden" name="templatetopic" value="ExampleForm2" />
New topic name <input type="text" name="topic" size="40" />
<input type="submit" value="Create Topic" />
</form>

On the IssueCategoryForm that I use as the form template, I have a formfield which is a checkbox (it has 3 values). By default, the first value is always checked when a new topic is created.

My question is: how can I disable that? I don't want any of the values to be checked by default...

All the docs I've read say that the exact same thing:

Initial values can then be provided in the URLs or as form values:

    * other than checkboxes: name, ex: ?BugPriority=1
    * checkbox: namevalue=1, ex: ?ColourRed=1.
      Boxes with a tick must be specified.

"Can be provided in the URL?" What url? How do I do this? I haven't seen any concrete examples and I'm really stumped...

Thanks a lot for any help on this!

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Forms

-- BehrouzBayat - 22 Jun 2006

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.

This sounds like a bug with Cairo, don't think there is a patch for it. CheckboxDefaultToUnchecked is a similar report on this.

Anyway, the problem is fixed with Dakar - time to upgrade? smile

-- SteffenPoulsen - 25 Jun 2006

I guess so... thanks. smile

-- BehrouzBayat - 27 Jun 2006

 
Topic revision: r3 - 2006-06-27 - BehrouzBayat
 
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.