Support other as answer, without further details.

This commit is contained in:
Paulo Reis 2016-07-26 11:50:29 +01:00
parent bfe3e160c9
commit 24614effc4

View file

@ -23,6 +23,11 @@ define [
formData.append "Field#{ reasonOtherFieldAPIId }", feedbackOtherVal formData.append "Field#{ reasonOtherFieldAPIId }", feedbackOtherVal
formData.append "idstamp", idStampVal formData.append "idstamp", idStampVal
# Allow user to specify "other" without any extra details; an empty string
# would trigger an error submitting.
if feedbackOpt == feedbackOpts.OTHER and feedbackOtherVal == ""
formData.set "Field#{ reasonOtherFieldAPIId }", "#{ feedbackOpts.OTHER } empty"
req = req =
method: 'POST' method: 'POST'
url: submitEndpoint url: submitEndpoint