SID-02056: Radio button doesn't work as mandatory field
| Status: |
Answered |
TWiki version: |
6.0.1 |
Perl version: |
v5.10.1 |
| Category: |
CategoryForms |
Server OS: |
Sientific Linux 2.6.32-358.6.2.el6.x86_64 |
Last update: |
10 years ago |
Hi, i created this form, some checkboxes and radio should be as mandatory!
All checkbox working perfect if it mandatory field twiki reported that i must select it but for some reason twiki ignore Radio as mandatory field. Any ideas?
| Name |
Type |
Size |
Values |
Tooltip message |
Attributes |
| DocumentSite |
checkbox |
|
All, HQ, SC, PL, LS |
ESO Site |
H, M |
| DocumentCategory |
checkbox |
|
People, Infrastructure |
Document Category |
H, M |
| DocumentSubCategory |
checkbox |
|
Faq, Index, Licenses, Manuals, Meetings, News,Policies, Procedures, Projects, Reports, Tasks, Studies, Servers, Software, Services |
Document SubCategory |
H, M |
| DocumentStatus |
Radio |
|
In Progress, Working Draft, Released, Retired |
Document Status |
H, M |
| DocumentDefinition |
textarea |
56x10 |
|
Free MetaData Field |
H |
| DocumentMigration |
Radio |
|
Complete, Incomplete |
Temporary Migration status |
H, M |
| DocumentRetain |
Radio |
|
Keep, Delete |
Temporary Keep or delete status |
H, M |
--
Andrew Grischenko - 2015-04-16
Discussion and Answer
Not sure. The field types are likely case sensitive. Try lowercase
radio.
--
Peter Thoeny - 2015-04-16
tried, same problem...
--
Andrew Grischenko - 2015-04-16
Looks like a bug, I can reproduce it in SVN trunk.
For whatever reason, TWiki thinks that the radio buttons do have a value and therefore accepts the save. For a test, best to remove the
H attribute, and you'll see that the fields have a value of
1. This isn't shown when you edit the field because it matches none of your values - but somehow it persists.
--
Harald Jörg - 2015-04-16
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
Peter Thoeny - 2015-12-03
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.