diff --git a/main/exercise/question.class.php b/main/exercise/question.class.php
index 23334d15ea3..1cee986b4bc 100755
--- a/main/exercise/question.class.php
+++ b/main/exercise/question.class.php
@@ -1791,7 +1791,9 @@ public function createForm(&$form, $exercise)
}
$form->addButtonAdvancedSettings('advanced_params');
- $form->addHtml('
');
+
+ $displayAdvancedParamsOptions = api_get_configuration_value('quiz_question_edit_open_advanced_params_by_default') ? 'block' : 'none';
+ $form->addHtml('
');
if (isset($zoomOptions['options'])) {
$form->addElement('text', 'imageZoom', get_lang('ImageURL'));
diff --git a/main/install/configuration.dist.php b/main/install/configuration.dist.php
index 5f1c6f7ea04..e7ef28e3446 100644
--- a/main/install/configuration.dist.php
+++ b/main/install/configuration.dist.php
@@ -751,6 +751,8 @@
// $_configuration['quiz_question_delete_automatically_when_deleting_exercise'] = false;
// Opens the quiz question description by default
//$_configuration['quiz_question_description_open_by_default'] = false;
+// Opens advanced parameters options by default when creating or editing quiz questions
+//$_configuration['quiz_question_edit_open_advanced_params_by_default'] = false;
// Define how many seconds an AJAX request should be started to avoid loss of connection.
//$_configuration['quiz_keep_alive_ping_interval'] = 0;
// Hide search form in session list