This is a simplified version of the full History - Write Event field, with preset default values for almost all of its properties. It creates a new history with a labelc value of "reporting" which can be targeted by dashboards and reports.
Properties
Label | Description | Type Name |
---|---|---|
Event Additional Properties | A function that can be used to either add new properties to or overwrite existing properties within the event object. To add additional properties, return a JSON object from this function. To override existing properties, return a JSON object that includes one or more elements with the same name as an existing property. See Adding and Overriding Properties on the History - Write Event article. | EVENTADDITIONALPROPERTIES |
Reporting Fields | Pick the fields whose values you'd like to store in the history. Do not pick any fields that may contain personally identifiable information - otherwise you'll invalidate the whole point of creating a "reporting" history. See the Labelc Histories and Reporting Data reference article for our conventions | REPORTINGFIELDS |
Documentation | Add documentation to your field to help explain any complex functionality to future users. You might include information on what the field does and how it relates to other fields on the form. Notes added here are only ever visible in the Forms Designer, they can be searched for, viewed and downloaded from the action panel. See Common Field Properties for an example | DOCUMENTATION |
Default/Hidden Properties
The following properties are set by default. Note that none of the usual subject or event user/proxy properties are recorded.
Label | Default | Type Name |
---|---|---|
Label A | The name of the form | LABELA |
Label B | A unique ID | LABELB |
Label C | "reporting" | LABELC |
Labels D and E | Empty string | LABELD, LABELE |
Subject Description | The form's description | SUBJECTDESCRIPTION |
Event | "Reporting data" | EVENTEVENT |
Event Description | "Reporting data" | EVENTDESCRIPTION |
Event History Description | "Reporting data" | EVENTHISTORYDESCRIPTION |
Event Private | false | EVENTPRIVATE |
Store Form Data | false | STOREFORMDATA |
Form Name | Empty string | FORMNAME |
Seal History | true | SEALHISTORY |
Action Results
The following can be accessed using .utilGetActionResults once the action has been processed.
"FIELDNAME": {
"eventId": "1027",
"success": "true"
}
Last modified on 2 March 2022