Displayed Tabs on the Record Screen: Examples

The displayed tabs are determined once:

Tab Mode

An example of the Tab mode tabs in the JSON format:

{
    "version": 1,
    "tabs": [
        {
            "label": "General",
            "sections": []
        },
        {
            "label": "Participants",
            "sections": []
        },
        {
            "label": "Expenses",
            "sections": []
        },
        {
            "label": "Application",
            "sections": []
        },
        {
            "label": "Final",
            "sections": []
        }
    ]
}

An example of the Tab mode tabs with the condition in the JSON format:

{
    "version": 1,
    "tabs": [
        {
            "label": "General",
            "sections": []
        },
        {
            "label": "Participants",
            "sections": []
        },
        {
            "label": "Hided tab",
            "showSoqlCondition": "FROM RetailVisitKpi WHERE VisitId = '{!Visit.Id}' AND AssessmentTaskId.TaskType = 'Wrong Type'",
            "sections": []
        },
        {
            "label": "Expenses",
            "showSoqlCondition": "FROM RetailVisitKpi WHERE VisitId = '{!Visit.Id}' AND AssessmentTaskId.TaskType = 'Expenses'",
            "sections": []
        },
        {
            "label": "Application",
            "sections": []
        },
        {
            "label": "Final",
            "sections": []
        }
    ]
}

Path Mode

  • In the Path mode, the displayed and the current tab may differ. The current tab is the tab that is opened by default or the last tab opened using the navigation buttons. The current tab remains the same if the user opens another tab by tapping on the tab header.

  • The list of displayed tabs can be changed when switching from one tab to another.

An example of the Path mode tabs in the JSON format:

{
    "version": 1,
    "controlledBy": {
        "statusField": "Status__c",
        "newStatuses": [],
        "completedStatuses": [
            "Completed"
        ]
    },
    "tabs": [
        {
            "label": "General",
            "statusValue": "New",
            "sections": []
        },
        {
            "label": "Participants",
            "statusValue": "In Progress",
            "sections": []
        },
        {
            "label": "Expenses",
            "statusValue": "In Progress",
            "sections": []
        },
        {
            "label": "Application",
            "statusValue": "In Progress",
            "sections": []
        },
        {
            "label": "Final",
            "statusValue": "Completed",
            "sections": []
        }
    ]
}
``