Skip to content
Snippets Groups Projects
Commit bce3bb4f authored by Liam Clark's avatar Liam Clark :speech_balloon:
Browse files

Make question form field required when enqueing for a question

parent e5ab98c6
Branches
No related tags found
No related merge requests found
......@@ -6,8 +6,10 @@ inputType.onchange = function() {
var isQuestion = inputType[inputType.selectedIndex].text === 'Question'
if (isQuestion) {
questionComment.removeAttribute('disabled')
questionComment.required = true
} else {
questionComment.setAttribute('disabled', '')
questionComment.required = true
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment