I would like to align the end of the TextFields in a Form such that they are in the same line. If there are only TextFields in a row, this question gives a good answer for me. What can I do if there is a CheckBox or other field, too?
\documentclass{article}
\setlength\parskip{1ex}
\usepackage{hyperref}
\usepackage{xcolor}
\newsavebox\TBox
\newcommand{\myTextField}[2]{%
\sbox\TBox{#1 }%
\TextField[backgroundcolor=gray!20,borderwidth=0,width=\dimexpr#2-\wd\TBox]{#1}%
}
\begin{document}
\begin{Form}
\begin{center}
\myTextField{Name:}{0.8\textwidth}
\myTextField{Address:}{0.8\textwidth}
\myTextField{Phone:}{0.5\textwidth}\hspace{0.01\textwidth}\myTextField{E-mail:}{0.29\textwidth}
\CheckBox[bordercolor=black]{Speaker:}\hspace{0.05\textwidth}\myTextField{Lecture title:}{0.608\textwidth}
\end{center}
\end{Form}
\end{document}

