Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label #59

Open
igelinas opened this issue Nov 22, 2017 · 4 comments
Open

Label #59

igelinas opened this issue Nov 22, 2017 · 4 comments

Comments

@igelinas
Copy link

Hello!

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

Thanks!
Isabelle

@jgrossi
Copy link
Member

jgrossi commented Nov 22, 2017

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

@igelinas
Copy link
Author

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
Copy link
Author

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

@robertorotondo
Copy link

robertorotondo commented May 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants