Hey there,
I’m having an issue with a button I’ve set up in my Coda doc. The button is supposed to add a value from a canvas text control (DocOpenValueProjects) to a column (PrioDocs) in the same row. Here’s a bit more context:
• PrioDocs is a relation to another table, and it’s set up as a multi-select column, meaning it can hold multiple values at once.
• The button’s job is to take the value from DocOpenValueProjects (a canvas text control) and add it to PrioDocs without losing any of the existing values already stored in PrioDocs.
ModifyRows(thisRow, thisRow.PrioDocs, DocOpenValueProjects)
However, the issue I’m running into is:
• The button works, but instead of adding the new value to the existing ones in PrioDocs, it overwrites everything else in that row. So, I end up losing all the previously selected values in PrioDocs, which isn’t what I want since PrioDocs is supposed to allow multiple selections.
What I’ve tried:
I’ve tried using ListCombine and other similar approaches to combine the existing values in PrioDocs with the new value from DocOpenValueProjects. However, these methods don’t seem to write the value in the correct way. Either the value doesn’t get added properly, or it loses its formatting (like the outline) and shows up incorrectly in the list.
I’d love a way to modify this formula so that the value from DocOpenValueProjects gets added to the existing values in PrioDocs without overwriting them and ensuring that it retains the correct formatting and structure.
Has anyone dealt with something similar or have any advice on how to tweak this so it works correctly?
Thanks in advance!
How to get there (short loom video)