diff --git a/app/assets/javascripts/protocols/import_export/import.js b/app/assets/javascripts/protocols/import_export/import.js
index 6e40fcbb4..f23188830 100644
--- a/app/assets/javascripts/protocols/import_export/import.js
+++ b/app/assets/javascripts/protocols/import_export/import.js
@@ -641,6 +641,12 @@ function importProtocolFromFile(
return json;
}
+ function formJson(formNode) {
+ return {
+ id: formNode.attr('id')
+ };
+ }
+
function stepElementJson(stepElementNode, folderIndex, stepGuid) {
var json = {
type: stepElementNode.attr('type')
@@ -656,6 +662,9 @@ function importProtocolFromFile(
case 'StepText':
json.stepText = stepTextJson(stepElementNode.find('stepText'), folderIndex, stepGuid);
break;
+ case 'FormResponse':
+ json.form = formJson(stepElementNode.find('form'));
+ break;
default:
// nothing to do
break;
diff --git a/app/utilities/protocols_exporter_v2.rb b/app/utilities/protocols_exporter_v2.rb
index e7ff623fa..33f6963c9 100644
--- a/app/utilities/protocols_exporter_v2.rb
+++ b/app/utilities/protocols_exporter_v2.rb
@@ -72,6 +72,8 @@ module ProtocolsExporterV2
xml << table_xml(element.table)
when Checklist
xml << checklist_xml(element)
+ when FormResponse
+ xml << form_xml(element.form)
end
xml << "\n"
@@ -135,4 +137,8 @@ module ProtocolsExporterV2
"