Skip to content

Commit

Permalink
update copy around save as reference
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanbond committed Dec 30, 2024
1 parent f0dfff4 commit 7c88ffe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/form/editForm/Form.edit.form.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
}
];
4 changes: 2 additions & 2 deletions src/components/select/editForm/Select.edit.data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'] },
},
Expand Down
2 changes: 1 addition & 1 deletion test/unit/Form.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 7c88ffe

Please sign in to comment.