Hi,
I have a problem on a clients site that I don't know how to handle. On this site there is a form with a required file upload field. By mistake, the field had the Display -> Private option enabled, thus making it invisible to users without proper rights, but admin could see it.
When I discovered this, I unchecked the Private option and saved. However, the users who are to fill in the form still cannot see the field, and admin cannot see it either. It's gone when you view the form. However, it's still visible when you go to Webform -> Form components. It worked fine before the Private option was mistakenly checked. Any idea what the problem is?
The form in question is large, 80+ fields over five pages. It has the Save drafts option and automatically save drafts between pages enabled.
This issue is seen on:
Drupal 6.22
Webform 3.17
EDIT: If I enable Private option, the upload field will again be visible to admin (but not to the users who should fill the form since they don't have rights to view results). But when I disable Private option, the field is not visible to anyone when you view the form.
Comments
Comment #1
quicksketchThanks for the report. I'll need to investigate if I can reproduce this issue. Could you try creating a simpler form with just a single element on it and see if the Private checkbox causes this problem on new forms? The simplest set of instructions to reproduce this problem will help identify what the cause is.
Comment #2
hanna_ulrika commentedThanks for your reply. Unfortunately, I have not been able to reproduce this for any simpler form. So far, I have only seen it on this large one.
Comment #3
fenstrat@hanna_ulrika I can't replicate this either. Feel free to reopen if you can outline a set of steps to replicate the issue.
You might also want to look at any custom module or themes you've got enabled as they may be altering the form as well.
Comment #4
hanna_ulrika commentedHi,
After further investigation, I've concluded that this problem was caused by the CKeditor in combination with the conditional values. The fact that I discovered it after clicking off the Private option was just a coincidence that confused me and set me off in the wrong direction. Sorry to set you off on a wild goose chase.
What had happen was that the CKeditor had generated an html break tag (br) in the empty text area where you are to specify your condition value. I discovered it when I switched from the editor to the plain text area. After removing the break tag, and saving, the upload field was visible again.
So, I'm guessing that the Private option was overriding the condition, and that is why admin could see it. But when I disabled Private, the condition was in effect thus making it invisible to everybody (who hadn't but an html break in the first text field, that is...) ;)
Comment #5
fenstrat@hanna_ulrika Good to hear you got it sorted (TinyMCE has similar behaviour with empty textarea), and thanks for updating the issue.
Comment #5.0
fenstratAdded information about bug.