Forms & Tasks Designerπ π§¨
Trigger Events for Form and El...
Trigger JavaScript
10 min
overview you can run your script and interact with form variables using javascript π form variable the form variable object procesioform describes a form, its related flow, instance, variables and all configured fields data β contains information about the current form fields, instance and flow variables β holds additional variables related to the form (e g , uploaded files) procesioform data fields defines all form elements each field has configuration such as label, visibility, type, and value, etc check corresponding element's page for documentation fields text input number input date time input textarea select input checkbox radio button button dropdown file upload approval dynamic assignee across forms structure section list columns stepper divider tabs side panel heading paragraph image file viewer icon table data table static table row dynamic table row procesioform data instance information about the form instance and users name description type id unique identifier of the form instance string workspaceid workspace id where the instance belongs (if any) string | null submitter info about the user who submitted the form object submitter id submitter user's unique id string | null submitter name submitterβs name string | null submitter email submitterβs email string | null currentuser info about the currently logged in user object currentuser id current userβs unique id string | null currentuser name current userβs name string | null currentuser email current userβs email string | null procesioform data flow information about the flow execution connected to this form name description type values id flow id string | null startdate when the flow started string | null enddate when the flow ended string | null status current flow status string | null in progress , completed , approved , rejected statusenum possible status values (enum) object procesioform variables holds extra variables created on the form getting started choose trigger javascript event write your script in the editor (you can enlarge the editor pressing esc button) example troubleshooting if you encounter issues with your form events check browser console for error messages and details verify javascript and form variables syntax for support, please join our discord community for further assistance and support