Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update copy around save as reference #5959

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading