I'm trying to have some clickable footnotes within tables. I tried using \footnote{}, it does create a link but there's no footnote text associated with it. \footnotemark[number] along with \footnotetext[]{} does create a fotenote but then there's no hyperlink. (I would like to make it clear that I'm trying to have footnotes at the bottom of the page and not footnotes within the table.)
Here's a small code snippet:
\documentclass{report}
\usepackage{hyperref}
\begin{document}
\begin{table}[h!]
\centering
\begin{tabular}{|r|r|r|}
\hline
A\footnote{Test!} & B\footnotemark[4] & C\footnotemark[5]\\
\hline
123 & Tim & Jane\\
\hline
456 & Tom & Jung\\
\hline
\end{tabular}
\caption{A table}
\end{table}
This is a clickable footnote\footnote{You clicked me!}.
\footnotetext[4]{This is B}
\footnotetext[5]{This is C}
\end{document}