Notice that the text field box did not end at the right margin. This results to ugly alignment of the boxes after typing several lines with text fields. I could have used \hfill before the text field but that will leave ugly white space between DESCRIPTION... and the text field.

So, to my question: How can I define a width, remwidth, such that I can write

\noindent\textbf{DESCRIPTION OF ACTIVITY}\raisebox{-2pt}{\TextField[name=description,width=remwidth]{}}

so that the text field box stops exactly at the right margin rule?

I would appreciate it very much if the the answer would include an explanation of what is happening at every step.

Edit: October 15, 2012 I edited the question since the problem is really about the \TextField command and the hyperref package putting a padding in it as noted in the comments. The other part of my question on defining a width command that I can use elsewhere is actually solved by \linewidth, which I just learned last night even after 3 years of using LaTeX. The question Difference between \textwidth, \linewidth and \hsize clarified its use for me.

+1 for WAYS TO PROCRASTINATE. i was about to sleep when i saw that and laughed hard :D
–
hpesoj626Oct 14 '12 at 15:33

@hpesoj626 You can see that the field is wider than the one for the description. :-)
–
egregOct 14 '12 at 15:35

@egreg An additional space is added by \LayoutTextField, then \dimen0 if fixed by \settowidth{\dimen0}{#2 \space}` and you can get rid of the 2.2221pt that also might change depending on the glue of the text description.
–
Heiko OberdiekOct 15 '12 at 2:27

@HeikoOberdiek, Tex does not warn of an overfull \hbox with your suggestion but the end of the text field will cross the right margin with showframe option in geometry package. Why is that?
–
hpesoj626Oct 15 '12 at 6:11