Hello
I am using BonitaBPM 7.2 community edition.
I have a text input and I wanted to use as a placeholder “Last available number: {{ myNumber }}”
The UI designer tooltip for placeholder suggests this is a valid option. Nevertheless this does not work and I get {{ myNumber }} as a placeholder.
I solved this by adding a text container with the hint inside but this would be nice if placeholders could effectively contain variable interpolation.
1 Like
Hi,
I did a test with version 7.2.1 and interpolation for placeholder actually work.
What is the type of your variable myNumber
?
I am having the issue with placeholders and labels on Comm v7.2.2. I have tried both {{ labels.en }} and [[ labels.en ]] for both the label and the placeholder with them not working.
BTW, the button for these fields show a paragraph symbol and not a binding function symbol.
{
“labels” : {
“code” : “Code”,
“en” : “English”,
“es” : “Spanish”,
“pt” : “Portuguese”,
“fr” : “French”
}
}
myNumber is a JSON field of an object fetched with ExternalAPI. The syntax I actually use is {{ myApi.lastNumber }} (lastNumber being a String in the JSON object).
I did a quick test with a direct JSON object and this actually work. But on an API result, il fails:
I did a similar test and it also work.
Can you share your bos file so I can give it a try?
As I am using a REST extension API which fetch data in an external database this will be difficult! I will give it a try with 7.2.1 and keep you posted
I assume that your JSON is in a variable named “test”. So you should have {{ test.labels.en }} and not {{ labels.en }}
Also note that Subscription edition of Bonita BPM provide native support for multi-language page if this is what you are trying to achieve.