How can I update a field of a Firestore document in FlutterFlow based on user interaction?

Database & APIs

I have a collection called 'articles' with the schema shown in the picture below. The 'isRecommended', 'isSaved', and 'isPopular' fields determine whether the article shows up under the Recommended, Saved, or Popular category on the first_aid page.

In the article_1 page, when the user clicks the save (down arrow) button on the upper right, I want the 'isSaved' field of the 'articles' document to be updated to true so that the article appears under the Saved category:

I used the following app states: 'isRecommendedArticle', 'isSavedArticle', and 'isPopularArticle' determine whether the user clicked the Recommended, Saved, or Popular category on the first_aid page. 'isSaved' determines whether the user clicked the save (down arrow) button on the upper right of the article_1 page:

What have you tried so far?

In the article_1 page, I set a 'title' parameter:

In the first_aid page, I made an action where if the user clicks the row containing the title and right arrow icon, they will be navigated to the article page with that title, and the document title will be passed to the next page (article_1):

In the article_1 page, I created the following actions for the save (down arrow) button. The 'Update App State' will change the color of the save button if the user clicks on it (and will turn 'isSaved' app state to true or false). What I am planning is that if 'isSaved' app state is false and the user taps on the save button, 'Update App State' happens (changes the color of the button). Then, whatever document has a 'title' field with a value equal to the passed parameter 'title', I want to change the 'isSaved' field of that document to true. But I'm kind of stuck here:

In online tutorials, they update Firestore documents by taking data from a TextField. However, I don't have a TextField in my scenario. I simply want to update the document based on a button press. Can anyone provide guidance on how to achieve this?

Did you check FlutterFlow's Documentation for this topic?
Yes
2