Post

2 followers Follow
0
Avatar

How to get the values of a category field in an app

Hello , I want to get all the values of a category field of an app. I'm using this code
$resp = PodioAppField::get( 1111111, 2222222);
foreach($resp->config->options as $it){
print_r ($it);
}

but I can't get the text values, please help me, thanks

Victoria Aparicio

Please sign in to leave a comment.

1 comment

0
Avatar

Hi Victoria,

This should work:

$resp = PodioAppField::get($app_id, $field_id);

foreach ($resp->config['settings']['options'] as $it) {
    print_r($it['text'] . "\n");
}

Jakob Pulczynski 0 votes