Set an element's label based on a document property

Modified on Mon, 5 Oct at 1:54 PM

It is now possible to have an element's label in the ribbon display a value of a particular document property. This can be useful in cases where a version number needs to be displayed in the ribbon for example. Currently, only labels for the following elements are supported: Buttons, CheckBoxes, and Static Menus.

The element needs to be defined as follows:

Code
label="BaseExtenstions:any" label-type="docprop" label-key="docpropname"

The label-type parameter currently only supports docprop (document properties) and in the label-key the name of the document property is inserted. This will set the label to display the value of that particular document property.

Below an example is presented:

XML
<Button label="BaseExtenstions:any" label-type="docprop" label-key="TemplafyTenantID">
    <Cmd ....... />
</Button>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article