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 2534 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

If you have an email and want to open it in PST fo[…]

Coinbase clone software is a ready-to-go software […]

Today's real-life properties like homes and lands […]

Looking to launch your own online crash betting si[…]