Questions and discussion about using ProcessMaker: user interface, running cases & functionality
By erdalayan
#818014
Hi,

I am quite new in processmaker. I have created a form via dynaforms as you may see in the attached shot and I was wondering if there is a way to create an autofill for the text areas like name, surname and ID numbers which already exist in user profile menu. I mean is it possible to define user details as default values in the form?

Best...
Erdal Ayan
Attachments
Selection_105.png
Selection_105.png (6.01 KiB) Viewed 2522 times
User avatar
By amosbatto
#818016
Let's say that your "Name" field is associated with the variable "firstName", your "Surname" field is associated with the "surname" variable and your "ID Number" field is associated with the "idNumber" variable. Then, create the following trigger:
Code: Select all
if (empty(@@firstName)) {
   $aUser = userInfo(@@USER_LOGGED);
   @@firstName = $aUser['firstname'];
   @@surname = $aUser['lastname']; 
   @@idNumer = @@USER_LOGGED;
}
Then, set this trigger to execute before the DynaForm which contains these fields.
See:
https://wiki.processmaker.com/3.2/Proce ... Info.28.29
https://wiki.processmaker.com/3.2/Trigg ... _a_process

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]