Foundation: Edit UI Buttons

In Foundation you have the ability to change certain UI buttons. Users are allowed to make two types of changes to these buttons which are changing their display name or hiding the button. Go to Admin & Settings > Applications > Application Settings > Foundation Hub. Here you can edit the Lifecycle Configuration box to specify the buttons location and the buttons to change. 

Use Case: a user wants to hide the Delete button to prevent other users from accidentally deleting a sample. They would navigate to the Foundation Hub Application Settings, and enter this into the Lifecycle Configuration:

{
"Sample": [
{
"name": "delete",
"hide": true
}
]
}

This JSON string tells Foundation a location or Entity where the button exists. In this case the Entity is Samples, so the button exists on the Samples tab of Task Plan. The next item is the button to be changed. Here it is the Delete button on the Samples Tab. Finally, there is the change to the button which is that it is to be hidden. Meaning the button will no longer be visible on the Samples tab. 

Another Use Case: A user wants to simplify the Mark For Disposal button they can enter:

{
"Sample": [
{
"name": "markForDisposal",
"displayName" : {"en" : "Mark Disposal"}
}
]
}

The difference here is the user changes the display name which includes two additional items. The first being the language code for the button. The second being the new name for the button. This action tells us the button will be in English and show Mark Disposal instead of Mark For Disposal.

One last note is note the naming convention in the last example. Most buttons with multiple words will follow the same convention where the first word is all lower case and any following words have their first letter upper cased.