user1134181
user1134181

Reputation:

Is there a way to set the display text for the value in list?

For example, there are some business process. The user is prompted to reject or to approve some document.

Part of the workflow content model:

...
<constraints>
    <constraint type="LIST">
        <parameter name="allowedValues">
            <list>
                <value>Approve</value>
                <value>Reject</value>
            </list>
        </parameter>
    </constraint>
</constraints>
...

Instead of Approve/ Reject I want to display a different text (national, with spaces, etc.). But in scripts I would like to use the same Approve/ Reject values.

Is it possible?

Upvotes: 0

Views: 226

Answers (1)

Younes Regaieg
Younes Regaieg

Reputation: 4156

Have you tried this ?

<constraints>
    <constraint type="LIST">
        <parameter name="allowedValues">
            <list>
                <value>Approve|Some Approval label</value>
                <value>Reject|Some Rejection label</value>
            </list>
        </parameter>
    </constraint>
</constraints>

Upvotes: 2

Related Questions