corcel / acf

Advanced Custom Fields (ACF) plugin for Corcel
128 stars 100 forks source link

Label #59

Open igelinas opened 6 years ago

igelinas commented 6 years ago

Hello!

Is it possible that the label is not accessible on a Select field? I only get the value.

Thanks! Isabelle

jgrossi commented 6 years ago

hey @igelinas can you send me a piece of code to understand better what you want to do? thanks 👍

igelinas commented 6 years ago

Well, it's quite simple in fact 👍 @foreach($member->acf->select('tasks') as $task) {{ $task }} @endforeach

In ACF, my tasks are setted as value : label

ex : task-1 : Task One

$task display the value (task-1) but I can't access the label (Task One).

But maybe the programming isn't done yet...

Let me know :)

Thanks!

igelinas commented 6 years ago

(oh and btw, the return format in ACF is Label)

robertorotondo commented 1 year ago

Hello, @igelinas have you found any solution to this problem? I'm facing the same difficulty. Thank you!