From a9df8445b2bda319e1aa2a6c72e1df0e7a6c8d6c Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 25 Mar 2021 15:37:22 +0000 Subject: [PATCH] . --- rapids/templates/rapids/rapid_form.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index bd9c4c05..8bf69324 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -33,9 +33,8 @@ function add_answers_input_form() { var form_idx = $('#id_answers-TOTAL_FORMS').val(); - let empty_form = $('#answer_empty_form'); - $('#answer_form_set').append(empty_form.html().replace(/__prefix__/g, form_idx)); - $(empty_form).find("li:eq(1)").find("select").val(2); + $('#answer_form_set').append($('#answer_empty_form').html().replace(/__prefix__/g, form_idx)); + $(`#id_answers-${form_idx}-status`).val(2); $('#id_answers-TOTAL_FORMS').val(parseInt(form_idx) + 1); }