Ideally when I create a new ‘Task’ I would like it to autofill the ‘Client’.
I tried the following formula on the ‘Task’ database ‘Client’ column but it didnt work.
=Related Meetings.Client
At the moment any task created in a meeting has to be manually assigned back to the client.
I build a quick a demo for you which can be seen below.
First, for the client to be automatically associated with a meeting you have to use buttons as otherwise Coda doesn’t know the context you are in (which client meeting you have)
See the doc below and let me know if it is what you wanted to achieve.
Hi @Cristian_Nichifor , Thanks for the quick reply.
Yes a button does work. It has the following limitations which I am hoping to avoid
On the ‘Meeting’ record, ‘Tasks’ table we need the ‘New row button below table’ as it allows us to search for existing tasks and link them. However, this creates a scenario where uses may click the ‘Add Row’ button instead of the ‘Add Task’ button.
In this scenario, the system does not auto fill [Client] on the ‘Task’ record when the ‘New Row’ button is clicked or a new task is linked.
Its not such an issue in this example but extra controls clog up interfaces and I try to avoid them were possible.
Two solutions I have already tried are
Limited Solution 1: Automations. E.g. Onchange on the ‘Task’ record, THEN
[Client]=
SwitchIf(
[Client].IsNotBlank(), [Client], // Dont override a manual value
[Related Meeting].IsNotBlank(), [Related Meeting].[Client] // Grab client from related meeting
)
However, these automation are quite slow and cut into the Limited Automation Runs.
At the moment they are the only consistant solution though.
Limited Solution 2: Adding a default formula.
E.g. On the ‘Task’ record, if [Related Meeting].IsNotBlank() THEN [Client]=[Related Meeting].[Client]
However, this does not appear to work. I can only suspect it is a back end timing issue with coda. For example, on the ‘Task’ Record created in a meeting the default formulas appear to run just before it autofills [Related Meeting]. Since [Related Meeting] is empty at this time [Client] is also left empty.
I hope this post spikes more interest and get get some cool ideas or someone can help shed some light on the timing issue described above.
Please check my doc again. I edited the Add task button so that users can select the tasks that do not have a meeting associated to them without you having to leave the page/row unlocked.
Now an user instead of having to press by mistake on create row when they instead only wanted to search and add an existing task they will have to choose & select in the relation above the task table from one of the already existing tasks that do not have a meeting associated with it. Then the user can just press Add task for everything to happen in the background.
This is a cleaner way of doing it as it doesn’t leave the things unlocked and prone for stuff to change by mistake. You have to first guide and then restrict the user into doing what you intend them to do as doc maker/process owner etc.
I am not a fan of the button method because if the table was working adding a new task would be as simple as typing and clicking enter. The button method requires more steps to make and use. This has proved to slow down brainstorming in meetings.
What’s more, I have it working without buttons. But only in one place and cant replicate it. Take a look.
[Venture] autofill’s correctly on the ‘Task’ when created from ‘Contact’ → Working!
Note: ‘Client’ was renamed to ‘Contact’. (GIF 1)
[Venture] IS EMPTY on the ‘Task’ created from ‘Meeting’ → Not working.
(GIF 2)
Next steps
Note that [Venture] on the task table is the same field in both gifs. (See that it uses the same ‘Value for new rows’ formula.) The only difference is the first example is created from a ‘Contact’ and the second is created from a ‘Meeting’.
This is so puzzling as the ‘Value for New Rows’ formula is successfully auto-filling when created from a ‘Contact’ but not from a ‘Meeting’. I suspect there is an invisible order that these fields are calculated but I cant know for sure.
I believe the solution should be a fix to the timing of the ‘Values for new rows’ formula.
However, if you go to the ‘Task’ table and on the [Related Meeting] column click the option “Switch relation and linked relation” it seems to make it work!