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

ID-3375 [FIX] Ensure Matrix field does not create extra columns in DS if the form has extra field, when user submits it #547

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NikitaJadhavXoriant
Copy link
Contributor

Product areas affected

Studio -> Form -> Matrix

What does this PR do?

Implemented code, so when user submit Form with matrix and other field, it should not create extra Matrix column.

JIRA ticket

click here

Result

Test-3375.mp4

Checklist

None

Testing instructions

None

Deployment instructions

None

Author concerns

None

@NikitaJadhavXoriant NikitaJadhavXoriant changed the title ID-3209 [FIX] Ensure Matrix field does not creates extra columns in DS if the form has extra field, when user submits it ID-3375 [FIX] Ensure Matrix field does not creates extra columns in DS if the form has extra field, when user submits it Aug 2, 2023
@NikitaJadhavXoriant NikitaJadhavXoriant changed the title ID-3375 [FIX] Ensure Matrix field does not creates extra columns in DS if the form has extra field, when user submits it ID-3375 [FIX] Ensure Matrix field does not create extra columns in DS if the form has extra field, when user submits it Aug 2, 2023
js/libs/form.js Outdated
formData._flSchema.excludedFields = [];

_.forEach(field.rowOptions, function(row) {
var val = row.id ? row.id : row.label;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var val = row.id ? row.id : row.label;
var val = row.id || row.label;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants