Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When viewing the results of a webform that contained checkbox/radiobutton selections, it will not be shown correctly. When I "View" a particular submission, it will either show that nothing was selected or in the case when all were selected, will only show one. But it will not always show that one all the time, it changes. "Edit" acts the same way. When I use the "Table" view, it will show that infact all options for that question has been selected. Though for reasons unknown, one particular question shows a blank result all the time.
Comments
Comment #1
quicksketchCould you post the contents of your "Options" field for the select component that is making the checkboxes? It could be something weird with the way webform tries to cleanup form values.
Comment #2
neruocomp CreditAttribution: neruocomp commentedSorry for the long wait, being interm sysadmin is demanding of this poor undergrad. anyways:
Checkbox selection:
LC/MS/MS w/CID & MASCOT DB Searching ($100 ea.)
LC/MS/MS w/ETD & MASCOT DB Searching ($100 ea.)
LC/MS w/MASCOT DB Searching OR molecular mass (& formula) determination ($100 ea.)-coming soon
And
Consultation (1st hr free, then $200/hr)
PEAKS De Novo Sequencing Report ($TBD)-coming soon
SCAFFOLD Report ($TBD)-coming soon
GPMAW Report ($TBD)-coming soon
Drop selection:
None
Trypsin Proteolysis ($25 ea.)
For the checkbox selection, I cannot see the results in the view page, but in the table page, and then sometimes they come up blank there also. As for the Drop selection, it shows up in the view page, but only sometimes in the table page. The sporadic occurrences maybe due to the fact that the page has been changed a few times as the user updates it. And for those curious, this is a form for protein searches.
Quick note: Checking the analysis page, it does that these options have been selected, so I guess the problem is displaying it correctly.
Comment #3
quicksketchYes, changing the options will definitely cause your results to become skewed. It'll also break viewing any data that was submitted before the changes.
To avoid this, you should use the key|value pairs such as this:
Then you can change the values without breaking the previous submissions (though you still can't change the keys).
Comment #4
Kevin10EC CreditAttribution: Kevin10EC commentedI am having this issue as well and cannot figure out what is wrong either. I have 4 questions.
1. A|Memphis
B|UCLA
2. A|North Carolina
B|Kansas
3. A|Conneticut
B|Stanford
4. A|Tennessee
B|LSU
I have the key|value pairs, but the Results page only displays the answer for the last question. I added additional questions, and with the addition of each new question, the results page shows the answer of the latest question added. Can you help?
Andrew
Comment #5
Kevin10EC CreditAttribution: Kevin10EC commentedPROBLEM SOLVED . . . My problem was solved after I ran update.php Everything is working fine now.
Comment #6
quicksketch