Displaying Details of Review in Application Summary
Outcomes allows you to create Evaluation Forms to capture the results of your reviews. By default, review results are displayed on the Review Tab of each application. Perhaps you'd like to display review information in the Application Summary, so that it appears more prominently.
Depending on what information you'd like to display, there are different methods you can employ. For example, if you'd like to display the reviewer's name, review date, or decision, you can create a calculated property directly in the Application Summary to pull these in, as described in Modifying the Application Summary below. If you'd like to display the number of reviews that have been completed, or some calculated score, you can create a Phase Calculated Field. Once you've established the field, you can add it in your Application Summary as well.
For this configuration, you'll customize the Application Summary, adding a Calculated Field. The Calculated Field will include a JavaScript code snippet that pulls in the needed information from the review.
Modifying the Application Summary
To begin, you'll need to customize the Application Summary. From the Application Summary editor:
- Drag the Custom field from the Available Fields menu to the Summary Fields window.
- In the Add Expression window, give the field a name using the Label field. You can also use the Hide Label In Application View checkbox to determine if you want this label to be displayed.
- Copy and paste the code snippet below into the Custom Expression field.
{ let evals = phases?.EvaluationPhaseName?.evaluations; if(evals.length == 0) return ""; evals.sort( (a,b) => { if(a.dateUserUpdated > b.dateUserUpdated) return 1; // if a newer than b, then move to back else if (a.dateUserUpdated < b.dateUserUpdated) return -1; // if a older than b, then move to front else return 0; // same. leave as is }); var table = []; for(var eval of evals) { let admissionsDecision = eval.form.admissionsDecision; admissionsDecision += (eval.form.term) ? ' (' + eval.form.term + ')' : ''; let utcTime = new Date(eval.dateUserUpdated) let localTime = new Date( utcTime.getTime() + (-10 * 60 * 60 * 1000)); let localTimeString = localTime.getFullYear() + '-' localTimeString += (localTime.getMonth() + 1 < 10) ? '0' : ''; localTimeString += (localTime.getMonth() + 1) + '-'; localTimeString += (localTime.getDate() < 10) ? '0' : ''; localTimeString += localTime.getDate(); let reviewerName = eval.userFirstName + ' ' + eval.userLastName; table.push( { 'Initials': reviewerName, 'Decision': admissionsDecision, 'Date': localTimeString, }); } return table; }
- Next, you'll need to adjust the variable in this code so that it will work with your data. To do so, remove EvaluationPhaseName from the first line of code, replacing it with the Phase Key that your review is associated with.
- Click Update to save the custom field.
- Arrange the field as desired, along with any other fields you want to include in your Application Summary. Click Save Changes to keep your settings.
Finding the Phase Key
To successfully modify the code, you'll need to find the appropriate Phase key. To find this:
- Go to the Phases section of the Settings Menu.
- Click the edit pencil to work with the available Phases.
- Locate and click the Phase that your review is associated with.
- From the Edit Phase page, locate the Key.
- This is the key you'll use to update the code above. For example, using the key from the screenshot above, you would update your code to:
let evals = phases?.admissionsReviewCommittee?.evaluations;
With this in place, your review information should now appear in your Application Summary.
Adding a Non-Numeric Reviewer Response to the Application Summary
The Phase Calculated Field feature allows you to configure your own calculations to be included along with your review data in Outcomes. For example, you may want to track whether a certain number of reviews have been completed for each applicant. You can build a Phase Calculated Field to capture this information, and then add it to your Application Summary.
While Phase Calculated Fields can be used to generate numeric outputs like sums, means, medians, and counts, programs may also want to highlight non-numeric evaluation information. For example, a program director may want to display a reviewer’s recommendation (e.g., Interview, Waitlist, Reject) directly in the Application Grid.
To create this calculated field, you’ll need:
- The key for the phase where the review occurs
- The key for the evaluation form question
Limitation: this only returns the first evaluation completed. To return the second, create a new property with evaluations[1]; to return a third, create a new property with evaluations[2], and so on.
{ let rec = phases.PHASEKEYGOESHERE?.evaluations if ((rec === undefined) || (rec.length == 0)) { return null }; return phases.PHASEKEYGOESHERE?.evaluations[0].form.EVALUATIONFORMQUESTIONKEYGOESHERE }