{ feedbackSection.hide() let body = isSuccess ? `
Thank you for your feedback!
` : `Sorry, something wrong happened
` feedbackBody.html(body.trim()); feedbackResponseSection.show() } else { feedbackSection.show() feedbackBody.html('') feedbackResponseSection.hide() } } const hideOrShowReasonInput = (value, labelText) => { let shouldShow = value > 3; label.html(labelText + reason + ' *') input.prop('required', shouldShow); $("input[name=_com_digitallab_gastat_GastatFeedbackPagesPortlet_INSTANCE_ffiq_feedbackReason]").val('') shouldShow ? unsatisfiedInputGroup.show() : unsatisfiedInputGroup.hide(); } })