Show label instead of value - JetEngine

Hi guys
Any one knows how to show the label instead of value for JetEngine’s Radio fields?
Sorry @timmse for mentioning, its necessary question :sweat_smile::pray:
Thank you

2 Likes

same +1 :smiley:
thank you
best greetz
david

1 Like

@Mehdimoradi
Is in your case Number oder Char Value?
I have Char Value and did the same Char value than Char Label (whats not so recommended) but it worked
If its a number value so is still missing the callback to Label

1 Like

Yes i did the same (as u said not recommended) but hope to be able select between label and value

1 Like

ok nice
yes would be better :+1:

1 Like

Hi @timmse is it possible to answer this question…
How can i output the label instead of value in JetEngine?

Hi @timmse same issue for me with number fields. Is there a solution/workaround?

:v:

1 Like

At the moment we can use Jetengine’s widget for bricks, we can filter the output as we want! but there is a performance issue with their widgets.

Each widget wrapped with at least one div, for example if you want to output h1, it will be wrapped by extra div!
So if we have 20 posts in a page and each card 5 contains 5 dynamic field, it will be 100 extra div (extra doms).

I contacted the support of JE but they say we don’t have a solution at the moment.
So i believe we need bricks team to make some filters for dynamic tags of Jetengine :heart::pray:

Hi Mehdi,
Sorry for the late reply. This is not a Bricks issue, since JetEngine saves only the option value to the database. The description text shows that.

Option Value
This value will be saved into Database

Option label
This will be shown for user on Post edit page

Also, if you call the field with PHP, you’ll get the same result:

<?php

echo get_post_meta( get_the_ID(), 'your-field-key', true );
echo jet_engine()->listings->data->get_meta( 'your-field-key' );

?>

@galasio : How can you have the same problem if the number field consists only of the value (i.e. the number)?

2 Likes

@timmse Thank you for your answer. I also just meant to get the label of a number field, but it’s the same issue like you ellaborate above.