Customizing the task details page customizing-the-task-details-page

CAUTION
AEM 6.4 has reached the end of extended support and this documentation is no longer updated. For further details, see our technical support periods. Find the supported versions here.

The task details page contains information about a task and its processes. However, you can customize the task details page to add or delete information.

You can add the following information to the task details page:

To customize the task details page:

  1. Follow Generic steps for AEM Forms workspace customization.

  2. To show any additional information, add corresponding key-value pairs to the translation.json file at todoblock > detailsblock > appblock > [ requiredblock].

    The [ requiredblock] refers to available blocks, such as the task block for task information, process block for process information, and currentpendingtask block for pending tasks information.

    For example, to add information about Route Selection Required in the task details page, you can add the following key-value pair in the task block:

    code language-none
    "todo" : {
        .
        .
        .
        "details" : {
            .
            .
            "task" : {
                .
                .
                "RouteSelectionRequired" : "Route Selection Required"
            }
        }
    }
    
    note note
    NOTE
    Add corresponding key-value pairs for all the supported languages.
  3. Copy /libs/ws/js/runtime/templates/taskdetails.html to /apps/ws/js/runtime/templates/taskdetails.html.

    Add the new information to /apps/ws/js/runtime/templates/taskdetails.html. For example:

    code language-css
    <div class="detailsContainer">
        .
        .
        <ul>
            .
            .
            <li>
                <label for="routeSelectionRequired" title="<%= $.t('todo.details.task.RouteSelectionRequired')%>"><%= $.t('todo.details.task.RouteSelectionRequired')%></label>
                <div>
                    <span id="routeSelectionRequired"><%= isRouteSelectionRequired != null ? isRouteSelectionRequired : ''%></span>
                </div>
            </li>
            .
            .
        </ul>
    </div>
    
  4. Open /apps/ws/js/registry.js for editing.

    Search and replace text!/lc/libs/ws/js/runtime/templates/taskdetails.html with text!/lc/apps/ws/js/runtime/templates/taskdetails.html.

NOTE
To customize the task details page with tasks created in the **Start Process **tab of AEM Forms workspace, add the new information to /apps/ws/js/runtime/templates/startprocess.html.
To add new styles for the information added in the details page, modify the CSS file by using the User interface changes section in Workspace Customization.
recommendation-more-help
a6ebf046-2b8b-4543-bd46-42a0d77792da