This repository contains UserScripts designed to enhance the functionality and user experience of the Actionstep platform at the Migrant Workers Centre. Each script provides specific features to improve efficiency and usability. Below are detailed descriptions and usage instructions for each script.
- Autofill File Note Template
- Highlight Text Based on Field Conditions
- Matter Page Enhancements
- Multi-Select Resizer
- Create Outlook Event from Page Data
This script adds custom fields to the file note editor based on the MWC file note template.
- Adds dropdown controls for start time, finish time, participants, mode of service delivery, and interpreter details.
- Appends entered data to the file note text area.
- Replaces the default save button with a custom button that appends the data and submits the form.
- Navigate to the file note section in Actionstep.
- Use the provided dropdowns and fields to enter relevant details.
- Click the custom "Save and Submit" button to append the details to the file note and submit the form.
To edit the fields available, modify the dropdownHtml
string within the script.
This script hides specific fields based on conditions and highlights fields in the 'Intake data' editing page based on the content of other fields, to support intake interactions with prospective clients.
- Hides fields when certain conditions are not met (activated by clicking "Hide empty").
- Highlights fields when certain conditions are met (e.g., when a checkbox is checked or a specific option is selected).
- Displays custom messages next to highlighted fields.
- Automatically shows fields when conditions are met.
- Navigate to a matter's 'Intake data' editing page.
- Click the "Hide empty" button to hide fields that do not meet conditions.
- Fields will automatically highlight and show based on predefined conditions.
To edit the conditions and fields affected, modify the hideFieldNames
array and highlightConditionsMap
object within the script.
Specify fields to be hidden. These fields will be hidden when they are empty and not being highlighted.
const hideFieldNames = [
"Visa_detail",
"Source_name",
// add other field names here
];
const highlightConditionsMap = {
'Visa': {
targetIds: ['Visa_detail'],
conditions: ['*bridging*', '*other*'], // multiple conditions
message: 'Ask about substantive visa', // message
},
'Disadvantage_indicators-disability': {
targetIds: ['Disadvantage_indicators-disability_type'],
conditions: ['!checked'], // negative condition
message: ''
},
'Employer_status': {
targetIds: ['Termination-manner', 'Last_day_of_work_description'], // multiple targetIds
conditions: ['*not still employed*'], // wildcard condition
message: '',
},
// add other conditions here
};
- Positive Conditions: Specify conditions that must be met for fields to be highlighted and shown.
- Negative Conditions: Prefix the condition with
!
to highlight fields when the specified condition is not met. - Wildcard Conditions: Use
*
as a wildcard in conditions to match any text. - Multiple Conditions: Specify multiple conditions by listing them in the
conditions
array. The field will highlight if any of the conditions are met. - Multiple Targets: Specify multiple target fields by listing them in the
targetIds
array.
This script enhances the matter home page on Actionstep with various features.
- Hides unnecessary menu items (configurable).
- Adds labels below menu items.
- Provides expand/collapse all toggle buttons for list items.
- Highlights expired limitation dates.
- Highlights conflict status.
- Prints relevant contact info on the matter page.
- Install the script in your UserScript manager.
- Navigate to a matter page in Actionstep.
- Use the provided buttons and observe the enhancements.
To edit which menu items are hidden or labelled, modify the config
object within the script by setting each key to true
to hide the item or false
to display it with a label.
This script adds drag-and-drop resize functionality to multi-select elements and doubles their default height in Actionstep.
- Allows multi-select elements to be resized via a draggable corner.
- Doubles the default height of multi-select elements to improve readability.
- Navigate to a form with multi-select elements in Actionstep.
- Drag the corner of a multi-select element to resize it.
This script adds a button to the Actionstep page to create an Outlook calendar event based on the data from the form fields.
- Creates a button labeled "Create Outlook Event" on the page which opens an Outlook new event page on a separate tab.
- Populates the Outlook event with data from the form fields (date, cause of action, type, link to matter).
- The button remains unclickable until all required fields are filled and updates with new values dynamically.
- Install the script in your UserScript manager.
- Navigate to a
Limitation and Critical Dates
creation or editing page. - Fill in the date, cause of action, and type fields.
- Click the "Create Outlook Event" button to generate an Outlook calendar event, then click "Save" and close the tab.
- Go back to the Actionstep page and click "Save" to record the limitation/critical date on Actionstep.
No specific configuration is required for this script. It dynamically checks for the required fields and automatically generates the event link based on user input. The event will save to the legal AT migrantworkers DOT org DOT au
calendar even if a different calendar is displayed in the new event page.
This work is licensed under CC BY-SA 4.0.