Questions and discussion around ProcessMaker 2 documentation

Moderator: amosbatto

There is no form[PRO_UID] field in the form. One should use __DynaformName__ field to get the process UID.
Code: Select all
var pro_uid = document.getElementById("__DynaformName__").value.split('_')[0];
There is no form[DYN_UID] field in the form. One should use __DynaformName__ field to get the process UID.
Code: Select all
var dyn_uid = document.getElementById("__DynaformName__").value.split('_')[1];
The value of DynaformRequiredFields should first be decoded by decodeURIComponent before eval, i.e.
Code: Select all
var requiredFields = eval(decodeURIComponent(document.getElementById("DynaformRequiredFields").value));
The version is 2.5.2.
Last edited by KingMario on Tue Mar 03, 2015 11:54 pm, edited 1 time in total.
amosbatto wrote:Thanks for pointing this out. I changed the documentation to an example that should work both when running a case and when using the DynaForm designer.
I'm making a common loadJS in every form that I'll be able to modify the javascript outside of the dynamform designer.
I was using the __DynaformName__, but find that it doesn't work in mobile ui (There's no such a field, __DynaformName__).
Code: Select all
try {
    loadJS(appendV("" + document.getElementById("__DynaformName__").value.split('_')[1] + ".js"));
} catch (err) {
From the wiki, you has changed the form id to getField("field-name")'_')[1], but I'll have to specify the field-name for every single form.
Any other way besides putting a unified dummy hidden field in every form?

sorry it didn't get attach first time mysql-erro[…]

Hi guys, Im using process maker 3.3.6-1 community […]

We are using the SAML plugin (see screenshot). Do[…]

Hi, I'm having some issues with the Android app. I[…]