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

Enable/Disable navigations buttons

Plus d'informations
il y a 11 ans 3 semaines #2902 par Viguera
Enable/Disable navigations buttons a été créé par 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!!

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 10 ans 1 mois #3805 par xlearn
Réponse de xlearn sur le sujet Enable/Disable navigations buttons
Hi all, would really like to know if this is a possibility too? Thanks.
Lilian

Viguera écrit: 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!!

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 10 ans 1 mois #3862 par Fay
Réponse de Fay sur le sujet 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

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: JohnSmith
Temps de génération de la page : 0.154 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo