Table changes duplicated in all tabs.

  • 1
  • Problem
  • Updated 5 years ago
  • Solved
  • (Edited)
I'm building a New Lead page with several Table and Field Editor components. In preview, clicking the Add Row button on any of the tables duplicates all fields in all the Field Editor components on the page. What am I doing wrong?
Photo of rsplastic

rsplastic

  • 80 Points 75 badge 2x thumb

Posted 5 years ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,222 Points 20k badge 2x thumb
I'm guessing that several of your Tables and Field Editors are linked to the same Model --- are you trying to create multiple New Leads from this page, or just one New Lead? What data are you creating with the Tables?

The Field Editor component will show all of its field for all rows that are in its associated Model --- for this reason, the Field Editor is usually associated with a Model that only ever has one row in it. That's why you're getting duplicated fields on the page.
Photo of rsplastic

rsplastic

  • 80 Points 75 badge 2x thumb
I think that's it. I had the tables linked to the lead model as was the field editor. I have now created a new model to pull in the related items and linked the tables to that. The problem seems to be solved. Thanks.