Tags:
create new tag
view all tags

SID-01347: Changing checkbox default to unchecked in EditTable

Status: Answered Answered TWiki version: Perl version:
Category: EditTablePlugin Server OS: Last update: 14 years ago

Is there a way to have the checkbox default to NOT checked when a new line is created. Right now it checks all the boxes that exist.

This is my code for that piece:

checkbox, 1, Issues, Notes

Thanks in advance!

-- CijaHuntley - 2011-12-07

Discussion and Answer

It looks like checkboxes are currently hard-coded to be checked when you add a new table row. Test:

Test text Test checkbox Test radio Test select
Blah Notes Issues Notes
One more Issues , Notes   Issues

Indeed, confirmed by reading the code. The EditTablePlugin could be enhanced with a configure setting that determines the initial state of checkboxes.

Or the spec could be changed to show new checkboxes unchecked (IMHO OK because of small impact and no foreseeable compatibility issue).

While we are at it, the radio buttons are unchecked, which is an undefined state. May be better to pre-check the first item in the list?

-- PeterThoeny - 2011-12-08

      Change status to:
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.
SupportForm
Status Answered
Title Changing checkbox default to unchecked in EditTable
SupportCategory EditTablePlugin
TWiki version

Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2011-12-20 - CijaHuntley
 
  • 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.