Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Caldera_Forms::get_field_data for :label param

$
0
0

Replies: 0

Hi,

I’m trying to get data from dropdown select field, but I need it to be the 'label', not 'value'.

When I use Caldera_Forms::get_field_data function, I get value of ‘value’. I’ve tried to change the magic tag setting via 'caldera_forms_magic_summary_should_use_label' filter, but it apparenly works only for summary magic tag.

The only way I managed it to work was using Caldera_Forms_Magic_Doer::do_field_magic( '%slug:label%', $entryid, $form );, but I’m not sure it’s the right way.

Is there some official way, I can get the select label data?

Thanks


Viewing all articles
Browse latest Browse all 59525

Trending Articles