Need a special offer?Find out if your project fits.
+

Add Captions

Answered
Michael Jaworski asked on March 27, 2024

I read and tried this - https://www.flexmonster.com/question/ho-can-i-add-caption-to-the-column-names-and-nor-showing-up-all-the-coulmns-by-default-for-the-end-user/
We add `caption` to every object in the the `mapping` object but the only way we can get human-readable column names is to change the field names which breaks a feature of ours where we save user settings. We are on 2.9.73.
This does not work for us.

input = [{ title: 'Hello' }]
mapping = { title: { caption: 'Title' }}

This works for us, but we do not want to change the field names.

input = [{ Title: 'Hello' }]
mapping = { Title: { /* now caption is not needed */ }}

2 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster March 29, 2024

Hello Michael,

Thank you for reaching out to us.

We could not reproduce the described behavior on our side. Please check the following JSFiddle illustrating the correct way of setting the mapping in Flexmonster: https://jsfiddle.net/flexmonster/b08scLgj/
Also, we noticed that the second screenshot displays fields that are different from those in the first screenshot. Could you please check if you are setting the correct mapping object?

Please let us know if our answer was helpful. Looking forward to hearing from you.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster April 10, 2024

Hello Michael,

Hope you are doing well.

We were wondering if you are still experiencing the behavior described when setting mapping. Is there still anything we can help you with?

Looking forward to hearing from you.

Kind regards,
Nadia

Please login or Register to Submit Answer