From 7c88ffe6ee0c9ea4489d410cc96f8ecf1a009e32 Mon Sep 17 00:00:00 2001 From: brendanjbond Date: Mon, 30 Dec 2024 10:53:39 -0600 Subject: [PATCH] update copy around save as reference --- src/components/form/editForm/Form.edit.form.js | 4 ++-- src/components/select/editForm/Select.edit.data.js | 4 ++-- test/unit/Form.unit.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/form/editForm/Form.edit.form.js b/src/components/form/editForm/Form.edit.form.js index 575f7a793f..5187fc0b06 100644 --- a/src/components/form/editForm/Form.edit.form.js +++ b/src/components/form/editForm/Form.edit.form.js @@ -67,7 +67,7 @@ export default [ input: true, weight: 20, key: 'reference', - label: 'Save as reference', - tooltip: 'Using this option will save this field as a reference and link its value to the value of the origin record.' + label: 'Submit as reference', + tooltip: 'Using this option will submit this field as a reference id and link its value to the value of the origin record.' } ]; diff --git a/src/components/select/editForm/Select.edit.data.js b/src/components/select/editForm/Select.edit.data.js index f1c41fd010..c74931a663 100644 --- a/src/components/select/editForm/Select.edit.data.js +++ b/src/components/select/editForm/Select.edit.data.js @@ -640,8 +640,8 @@ export default [ input: true, weight: 25, key: 'reference', - label: 'Save as reference', - tooltip: 'Using this option will save this field as a reference and link its value to the value of the origin record.', + label: 'Submit as reference', + tooltip: 'Using this option will submit this field as a reference id and link its value to the value of the origin record.', conditional: { json: { '===': [{ var: 'data.dataSrc' }, 'resource'] }, }, diff --git a/test/unit/Form.unit.js b/test/unit/Form.unit.js index 3ad51c6e19..6894c9dfe6 100644 --- a/test/unit/Form.unit.js +++ b/test/unit/Form.unit.js @@ -494,7 +494,7 @@ describe('SaveDraft functionality for Nested Form', () => { }).catch((err) => done(err)); }); - it('Should not create a draft submission for nested form if Save as reference is set to false', function(done) { + it('Should not create a draft submission for nested form if Submit as reference is set to false', function(done) { _.set(comp7.components[1], 'reference', false); const formElement = document.createElement('div'); Formio.createForm(