Questions and discussion around ProcessMaker 2 documentation
#782185
PRO_UID
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];
DYN_UID
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];
DynaformRequiredFields
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.
#782354
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("http://static.MYDomain.com/js/forms/" + document.getElementById("__DynaformName__").value.split('_')[1] + ".js"));
} catch (err) {
    
}
From the wiki, you has changed the form id to getField("field-name").form.name.split('_')[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?
Thx.

Being the best in the started business is the obje[…]

Winzo is a popular and unique game on the mobile p[…]

Cannot create process using templets

Real details. The problem was solved by effect!

However, it is essential to use it responsibly and[…]