Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
User avatar
By ericopro
#823056
Hi everyone!

I am trying to create a link to a external webpage. I modify the html of the document and I write the html link tag:

Code: Select all
<a href="@#mylink"> My link </a>
I save changes, but then, it changes automatically to:
Code: Select all
<a href="myprocessmakerIP/sysworkflow/es-ES/neoclassic/#mylink
That's why then, when I click on the link, it redirects nowhere, do you know how to solve it?

Thanks in advance!
User avatar
By ziadeh
#823057
I think there are two reasons:
1- @#mylink it could be empty when generate a document or send an email.
2- when edit the template through Rich Text for email templates sometimes its modify the link.

Try to make sure that the link is not empty and try to edit the template through HTML Editor and save it.

if you are trying to send it through email, try to use this code:
Code: Select all
$subject = "Test Email";
$aFields = array( 'mylink' => @=mylink);
$ret = PMFSendMessage(@@APPLICATION, $from, 'myemail@mydomain.com', ' ', ' ', $subject, 'emailTemplate.html', $aFields);
User avatar
By amosbatto
#823088
The template editor for Output Documents does some strange transformations like that.

Create a trigger like this:
Code: Select all
@@myHtml = '<a href="http://example.com/sysworkflow/es-ES/neoclassic/cases/main"> My link </a>';
Set it to fire before the Output Document step.

Then, put the following in your template:
Code: Select all
some text
@#myHtml
some text
User avatar
By ericopro
#823133
I get your point of view, but in my case, the link is taken from a value from one of my dynaforms.
So then, basically, I have the link stored in a variable called @@Mylink, and I need to put these variable in my Output Document as a link.
Sorry if my explanation wasn't really clear before...

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]