How to store input text from input field?

Hello everyone,

We are currently working on a mobile phone party game and the first screen is 4 empty placeholder input fields where each team will write their name inside.

How can I make a condition so that when at least 2 fields have text in them, the confirm button will become clickable (sprite swap to a green button instead of grey) and then when the player clicks “Confirm” the input fields, depending on the number of fields created, it will store inside an array the team names so that we can use the variables later on when displaying Team Name in the main game screen?

TLDR: you must write at least inside 2 fields:

to enable the confirm button, then take the 2-4 team names and store them and assign them numbers 1-4 so that we can use them later for mechanics like the number of pawns that appear in the game.

You can reference all fields (public field for easy references)
Then check if 2 of those or more are filled ( if(string.isNullOrEmpty(FieldText)), and then just store the text in strings (or list of strings)

I have no idea what you mean, is there any link to a documentation specifically for my case? Would be really great if the link wasnt the official documentation because it asks me to accept their tracking cookies