How to get user entered text in custom action

hi, may i know how and where you add in those code for tracking user input?