Button to save input in different rows from a list?

I don’t know if it is possible. I would like to have a button in a screen where I have a list/grid showing all documents from a collection in Firestore. Each one of these documents has an input value. I know how to place a button in the component that is used to list the documents so you can save the changes for that particular row, but if I want to write the input values for all the listed rows and save all of them with just one button interaction. How can I don it?

Thanks!

This would require lot of scripting of your own. Basically the script would need to go trough all items in the list and then make the saving into Firestore in the script.

Thank you so much for your answer as always @Antti_Neonto. No problem. It was what I imagined. I asked just in case there was a way to get it done without a lot of scripting. I can do it with an individual button for each row in the list. Not a big deal.

Thanks!