The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

Enable/Disable navigations buttons

  • Viguera
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
11 jaren 1 maand geleden #2902 door Viguera
Enable/Disable navigations buttons werd gestart door Viguera
Hi,

I would like to add a mcq page (multiquestion) but i want the 'next button' to be disable until the correct answer is selected. I can disable the button with the editor, but how i enable by code the button again? what's the correct js code to do this?

Thanks a lot!!

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
10 jaren 2 maanden geleden #3805 door xlearn
Beantwoord door xlearn in topic Enable/Disable navigations buttons
Hi all, would really like to know if this is a possibility too? Thanks.
Lilian

Viguera schreef : Hi,

I would like to add a mcq page (multiquestion) but i want the 'next button' to be disable until the correct answer is selected. I can disable the button with the editor, but how i enable by code the button again? what's the correct js code to do this?

Thanks a lot!!

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
10 jaren 1 maand geleden #3862 door Fay
Beantwoord door Fay in topic Enable/Disable navigations buttons
1. Add the optional property 'Navigation Buttons' to the MCQ page and change to 'Back only'.

2. Open the wysiwyg editor for the correct answer's feedback field. Click Source and paste in this:
Code:
<script> $x_nextBtn.button("enable"); </script>

The button will stay disabled until the correct answer is submitted.

Alternatively you could add a Xerte Page Link to the feedback text (via the wysiwyg editor) so users would follow the link to a page of your choice after selecting their answer

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: JohnSmith
Tijd voor maken pagina: 0.130 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo