diff --git a/inc/question.class.php b/inc/question.class.php index 2dbe83e5a..a51774267 100644 --- a/inc/question.class.php +++ b/inc/question.class.php @@ -774,7 +774,7 @@ public function showForm($ID, $options = []) { $form->getFromDBBySection($section); $rand = mt_rand(); - echo '
'; + echo ''; echo ''; echo ''; diff --git a/js/scripts.js.php b/js/scripts.js.php index bf0a71087..3bd9b2da4 100644 --- a/js/scripts.js.php +++ b/js/scripts.js.php @@ -1075,8 +1075,8 @@ function pluginFormcreatorInitializeUrgency(fieldName, rand) { } function plugin_formcreator_changeQuestionType(rand) { - var questionId = $('form[name="plugin_formcreator_form"] input[name="id"]').val(); - var questionType = $ ('form[name="plugin_formcreator_form"] [name="fieldtype"]').val(); + var questionId = $('form[name="plugin_formcreator_questionform"] input[name="id"]').val(); + var questionType = $ ('form[name="plugin_formcreator_questionform"] [name="fieldtype"]').val(); $.ajax({ url: rootDoc + '/plugins/formcreator/ajax/question_design.php',