1. Ask user to click a text field.
2. Script get the name of the text field which user clicked.
3. Input something into the text field.
Thank you for your help.
There's no way to do that with just a single script. You'll need to attach a script to the On Focus event of each field in the file to be able to detect which field they selected.
Thanks for your time.
I am a beginner, I just form SOME form fields in my pdf.
My temperary fix is like this: