Table cells as CheckBoxes

by Pfarc Mändler   Last Updated September 11, 2019 13:23 PM

We have to replicate an existing pdf form using latex.

I found this to be of use: https://www.tug.org/applications/hyperref/manual.html

--> \usepackage{hyperref}

The existing form which I have to replicate has clickable cells.

See image: enter image description here

I think I need to either, make a table cell being a \CheckBox.

Or make the \CheckBox fill the whole table cell.

Currently I tried to play with the attributes of \CheckBox but no success.

\mbox{\CheckBox[borderwidth=0.1mm,name=tblWetCell,width=3mm,height=3mm]{}}&\CheckBox[width=1mm,height=1mm]{ }

This is what it looks like in its current state.

enter image description here

Full table in latex:

\begin{table}[!ht]
\begin{small}
\begin{tabular}{|l|l|l|l|l|l|l|}
\cline{3-7}
\multicolumn{1}{l}{Anz. sep. WC}        &\TextField[width=3cm,name=toilAmount]{}        &\multirow{3}{*}{\rotatebox{90}{\hfill wöchentlich }} & \multirow{3}{*}{\rotatebox{90}{\hfill täglich }} & \multirow{3}{*}{\rotatebox{90}{\hfill monatl
ich }} & \multirow{3}{*}{\rotatebox{90}{\hfill bei Bedarf }} & \multirow{3}{*}{\rotatebox{90}{\hfill Zusatzarbeiten }} \\
\multicolumn{2}{l|}{}                   &&&&&\\
\multicolumn{2}{l|}{}                   &&&&&\\
\multicolumn{1}{l}{Anz. Nasszellen}     &\TextField[width=3cm,name=wetCellAmount]{}     &&&&&\\
\multicolumn{2}{l|}{}                   &&&&&\\
\multicolumn{2}{l|}{}                   &&&&&\\

\hline
\multicolumn{2}{|l|}{Nasszellen (Bad / Dusche / Toiletten)}&\mbox{\CheckBox[borderwidth=0.1mm,name=tblWetCell,width=3mm,height=3mm]{}}&\CheckBox[width=1mm,height=1mm]{ }& &            &                \\
\hline
\multicolumn{2}{|l|}{Abfalleimer in Küchenabfall leeren} & &         &           &            &                \\
\hline
\end{tabular}
\end{small}
\end{table}

Tags : tables forms


Related Questions


Trying to make form using tabular and underline?

Updated June 12, 2015 07:10 AM

How to have Form options in Table cells?

Updated August 09, 2017 15:23 PM

Reproducing a tabular form

Updated June 09, 2017 10:23 AM

Command or Environment to generate a table row

Updated March 28, 2017 18:23 PM

Different problems with tabularx

Updated May 09, 2019 10:23 AM