Questions and discussion about using ProcessMaker: user interface, running cases & functionality

Moderator: amosbatto

By rohitambre
#825045
Hi everyone,
I have two environments one running on http and other on https. Whenever I have to transfer a process from one instance to other I have to change links for external libs from all the tasks to different domain and different protocol.

Can we create any Global variable in Process to use inside external libs field.

Thank You.
User avatar
By amosbatto
#825087
Create a trigger like this:
Code: Select all
$g = new G();
@@myLibraryUrl = ($g->is_https() ? "https" : "http") . "://www.mydomain.com/mydir/mycode.js";   
Set this trigger to fire before the Dynaform.

Then in your "external libs" property, set: @@myLibaryUrl

Thanks for your reply, Press F12 in your web bro[…]

I created a new process to make it easier to look […]

Genial!!! gracias. :D

This is resolved. I took a punt on Amos' suggesti[…]