Skip to main content

Working on setting some things up with #FormAssembly, and I'm realizing something I thought would be very simple, is not so simple. I want to reference the values in some hidden fields in a link. I'm using the "Text" option under "Add Content" and I learned very quickly that just including the field (e.g. %%tfa_1%%) does not result in the value of that field showing in the link address.

 

I had found (and have used) the dynamic clickable links for repeating sections here, but I don't know javascript, etc. well enough to reverse-engineer that into something that works on a link that isn't in a repeatable section. (If reverse-engineering it is even the right direction to go.)

 

Anyone have experience with this or any guidance? I would appreciate it so much!

@FormAssembly

7 risposte
  1. 9 apr 2023, 03:57

    Great minds, @Jessica Rosenberg! That thought occurred to me earlier today, but I suspect it wouldn't work unless there is an equivalent to the HYPERLINK() spreadsheet formula (so the link would show as "Click here" or whatever text).

     

    I am excited to share that, thanks to a helpful volunteer who knows javascript, we came up with a solution: using the dynamic links script in that article with a time delay. Accomplished by adding the following around the last piece of the script (also included here) - this delays it for 2 seconds:

     

    setTimeout(()=>{

    dynamicLinks(".clickableLink","tfa_2");

    },2000);

0/9000