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?
Deleting the processes.

Are you sure that you are using version 1.245 f[…]

Changing the login page

In your pmos.conf, try changing from: Redir[…]

Clearing a datetime field

Is there a way to clear a date area inside of a […]

add dropdown to search process

I have to add dropdown list to search process. How[…]