I want to have \q{}
many lines, while it is designed for one line now.
For example, take value from 2 to the maximum amount of lines per frame.
Code based on Christian's thread answer Creating fillable PDFs.
% https://tex.stackexchange.com/a/14845/13173
\documentclass{beamer}
\usetheme{Berkeley}
%https://tex.stackexchange.com/a/14845/13173
\usepackage[latin1]{inputenc}
\newdimen\longline
\longline=\textwidth\advance\longline-4cm
\def\LayoutTextField#1#2{#2} % override default in hyperref
\def\lbl#1{\hbox to 4cm{#1\dotfill\strut}}%
\def\labelline#1#2{\lbl{#1}\vbox{\hbox{\TextField[name=#1,width=#2,bordercolor=white]{\null}}\kern2pt\hrule}} % https://tex.stackexchange.com/a/374712/13173
\def\q#1{\hbox to \hsize{\labelline{#1}{\longline}}\vskip1.4ex}
\begin{document}
\section{Lorem}
\begin{frame}
\begin{Form}
\q{Merkki:} % TODO have here many lines
% \q{}
% \q{}
\end{Form}
\end{frame}
\end{document}
Output in Fig. 1
Fig. 1 Output with only one line
Expected output: to have many lines (etc 3) for the input, and show the input on another page
Testing UlrikeFisher's proposal in one environment
Code
\documentclass{beamer}
\usepackage[english]{babel}
\usetheme{Berkeley}
%\usepackage[margin=1pt]{geometry}% http://ctan.org/pkg/geometry % Beamer loads geometry already!
% https://tex.stackexchange.com/a/387474/13173
\usepackage{xparse,calc}
\usepackage{eforms}
\begin{document}
\begin{frame}{Henkil\"{o}tiedot}
% #Henkilotiedot https://tex.stackexchange.com/a/387474/13173
\medskip
\textField[
\Ff\FfMultiline
\Ff\FfDoNotSpellCheck
]
{myinput}{\dimexpr\linewidth-10ex}{5\baselineskip}
\end{frame}
% https://tex.stackexchange.com/a/385265/13173
\pdfpagewidth 21cm
\pdfpageheight 29.7cm
%% #Henkilotiedot
\textField[
\Ff\FfMultiline
\Ff\FfDoNotSpellCheck
\Ff\FfReadOnly
\AA{\AACalculate{event.value=getField("myinput").value;}}
]
{myoutput}{\dimexpr\linewidth-10ex}{5\baselineskip}
% https://tex.stackexchange.com/q/385438/13173
\newcommand*{\TableA}{%
% \textcolor{gray}{\rule{.5\linewidth}{10cm}}%
\begin{table}[hpt]
\setlength\tabcolsep{1pt} % default value: 6pt % https://tex.stackexchange.com/a/201117/13173
\begin{tabular}{|p{.2cm}|l|l|l|l|l|l|l|p{.2cm}|}
\hline
\rot{{\tiny\textbf{Avain muuttuja}}}
& \textbf{V2} & \textbf{V1} & \textbf{V0}
& \textbf{TESTI Muuttujat}
& \textbf{P1} & \textbf{P2} & \textbf{P3}
& \rot{{\tiny\textbf{Kriittinen muuttuja}}} \\ \hline
& & & & 1. Sosiaaliset taidot & & & & \\ \hline
& & & & 2. Ihmissuhteet (TS: K/E)* & & & & \\ \hline
& & & & 3. Ammatillinen arvio & & & & \\ \hline
\end{tabular}
\end{table}
}
\newcommand*{\TableB}{%
\textcolor{red}{\rule{.5\linewidth}{3cm}}%
}
\newcommand*{\TableC}{%
\textcolor{green}{\rule{.5\linewidth}{3cm}}%
}
\newcommand*{\TableD}{%
\textcolor{blue}{\rule{.5\linewidth}{3cm}}%
}
% Show summary here from Page 1 and 2
\begingroup
\setbeamertemplate{navigation symbols}{}%remove navigation symbols
\section{Summary}
\begin{frame}[plain]
\vskip 1.5cm
\hspace*{-1.7cm}% to leave 1.0 cm margin
\begin{minipage}{19cm}
\begin{center}
TESTI
\end{center}
% Pisteytyskohta https://tex.stackexchange.com/q/385438/13173
\begin{adjustbox}{max width=\textwidth}
\sbox0{\TableA}%
\noindent
\vtop{%
\kern0pt % Align at the top
\copy0 %
}%
\kern-.2pt %
\vrule
\kern-.2pt %
\vtop to \dimexpr\ht0+\dp0{%
\kern0pt % Align at the top
\hbox{\TableB}%
\vfill
\hbox{\TableC}%
\vfill
\hbox{\TableD}%
}
\end{adjustbox}
\end{minipage}
\end{frame}
% these below eventually are not needed, if this is the last slide of your document
\makeatletter
\pdfpagewidth \beamer@paperwidth
\pdfpageheight \beamer@paperheight
\makeatother
\endgroup
\end{document}
Fig. 2 Page setting is affected by the environment
OS: Debian 9
TeXLive: 2017
Acrotex installation: here