I have been having some trouble naming my accordion tabs based on some the fields that reside in the accordion.
The fields that reside in my accordion are First Name ( model: firstName ) and Last Name ( model: lastName ). If the user entered the following:
First Name: Jerry
Last Name: Bell
I would like the tab name to show Jerry Bell.
I have tried to use the JSON attribute “tabLabelModel” to reference the field models firstName and lastName but it doesn’t seem like it works. I can get text to show up on tab with “tabLabel” but how can I reference a field within the model with this attribute? Or should I be using “tabLabelModel” or another attribute?
Let me know if you need a copy of the JSON Model on my page.
This older component came before BF had _calc 's which would solve it easily.
There is not an easy want to add this calculation, but what you can do is in your asJSON have a fullName field and let FM generate that. It would not show up live as you type, but thats probably fine.
When you save, the FM hook can return the full asJSON.fullName field and you can point the model to that.
If you can wait until the next build we can augment that component to support the calc’s.
c
In the original accordion component the “add” works well, as soon as I change type to “accordion2”, the add button is no longer functioning. Is this a bug or am I doing something wrong?