Page 1 of 1

Adding a javascript link appear at the top of a dynaform?

Posted: Mon Sep 17, 2018 5:01 pm
by Throwaway
Hello,

I'm trying to figure out the best way to have a dynamic link to a contact record at the top of my dynaform. The URL will mostly be static other than 1 ID that will be added depending on their selection.

Are there any examples of this? Maybe using a subtitle and setting it as a link via javascript?

Re: Adding a javascript link appear at the top of a dynaform?

Posted: Mon Sep 17, 2018 11:06 pm
by amosbatto
You can use JavaScript to set a link in a title or subtitle:
https://www.pmusers.com/index.php/Title ... Fsubtitles

If you want to set the link, then add a hidden field to the form and set the variable for that hidden field in a trigger, which is fired before the dynaform. You can also set the URL and label for a link using case variables set in a trigger, as explained in the wiki:
https://wiki.processmaker.com/3.0/Links ... n_Triggers