Jump to content

A Select External Option field in a repeater field, how to get the value ? [resolved]


Sten
 Share

Recommended Posts

Hi,
I can't get the value of the fields of the page whose id comes from the value of the select field. In fact the value I get is the id of the repeater field from an other table with several fields inside.

<?php
//I get the repeater field value
$events= $page->evenement;
//I get the different lines
foreach ($events as $event){
//I get the value of the select field
foreach ($events as $event){
$cat=$event->type;
echo $pages->get($cat)->couleur;exit;

And then my result is empty.

I am now confused with all my trials...

thank you

Edited by Sten
to clarify
Link to comment
Share on other sites

  • Sten changed the title to A Select External Option field in a repeater field, how to get the value ? [resolved]

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...