SID-01347: Changing checkbox default to unchecked in EditTable
| Status: |
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:
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
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.