A new after query using same collection

I have this code that works great, but i need to add one more concatenated set of fields from the same collection and cannot find the right place on the page to add the string without corrupting this code.

I am looking to add two field keys that are not included in this code to make one field key like first and last name but not first and last name

Can i fit this code into to the attached code block at the top of the page and where do i put it without breaking the code please

  1. item.dayDate = item.day + “,” + item.date;

  2. return item;

  3. }

So I know why this error code exists but cannot find the right way to show in js file with aforementioned code block without corrupting the full name row code

You can’t have 2 functions with the same name. Use one only and put there everything you want.

@jonatandor35 still can’t get an entry in the collection using this, although no errors

Not sure why this is not populating the concatenated field in my collection now that this code has been added?

is the code on line 15 in the right place?

I have added a comma on row 17 between row and item is this correct?
Thanks
Adam

You can’t pass 3 variables to the hook, and you can’t use “return” like that. You should decide if the 1st variable name should be “item” or “row” and stick to it.

Ok i get you so if i deleted item and context from line 3 would that be a good start?

then on line 15 change item to row.dayDate

and delete item from Return Row on line 17?

I didn’t read your full code, so there might be other problems.
But you should try it. Also change all the "item"s in line 17 to “row” not only the first one.

@jonatandor35 totally works, love it thanks