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.
Hi,
I am having a really odd issue. For some reason when I limit the quiz to the params below the next button appears twice.
Quiz config:
Note: I am using a Drupal 7 vanilla install with the Bootstrap theme
What am I missing?
Comment | File | Size | Author |
---|---|---|---|
#10 | Screen Shot 2015 11 17 at 12.21.15 PM.png | 19.36 KB | Manjit.Singh |
Comments
Comment #2
emilorol CreditAttribution: emilorol commentedComment #3
djdevinJust guessing but one of the buttons may have a "js-hide" class on it, for when the user presses Enter - in the case where the first button is actually "Back" or "Leave blank".
Maybe the theme isn't hiding it.
Comment #4
emilorol CreditAttribution: emilorol commentedThis is the HTML of each button:
The only different thing is the "-hidden" on the ID. Also there is not JS error or warning.
Comment #5
djdevin#edit-submit-hidden is supposed to make the button not visible, but allow it to be activated.
This is in quiz.css so it appears that the theme is overriding this somehow.
Comment #6
emilorol CreditAttribution: emilorol commentedThe problem is not the theme overriding the CSS, but the HTML. Bootstrap will make the input submit a button so the CSS rule will not apply. The following correction will fix the issue for themes using Bootstrap:
Thank you.
Comment #7
Manjit.SinghHey emilorol, I have tried to reproduce this issue in vanilla drupal 7 with Bootstrap 7.x-3.5 theme. But I have not seen any issues related what you have described.
Can you please tell me what i am missing ?
Comment #8
emilorol CreditAttribution: emilorol commentedDid you set up the quiz settings like I show on the screenshot?
Comment #9
Manjit.SinghI have not found the feedback section at backend.
Can you explain, how it got there. Is there any need to enable some other module ?
Comment #10
Manjit.SinghComment #11
jdearie CreditAttribution: jdearie commentedI was having the same problem - except my mystery button didn't have any text. It was an HTML issue as #6 stated, but I had to add ".answering-form" for the CSS/HTML to stick with my custom theme.
Comment #12
xiangrikuiyy CreditAttribution: xiangrikuiyy commentedMy html for the double next buttons look different. Here is the html code
I am using the quiz module with jquery mobile.