Jump to content

Banner - How to Text value of Array


smusselm-1711829827
Go to solution Solved by smusselm-1711829827,

Recommended Posts

This might be something simple, but I created a banner custom field and I want to retrieve the Text not the field value of another multiselect field.

I have the same issue with checkboxes.

I've tried a lot of things and I can't get them to work.  I'm using Joomla 5.

$department = implode(',', $CustomFields->fieldValue('jr_department',$text)); //returns false

$department = implode(',', $CustomFields->field('jr_department',$text)); //returns false

$department = implode(',', $CustomFields->fieldValue('jr_department',$entry)); //works but provides value not text

$department = implode(',', $CustomFields->fieldValue('jr_department',$output)); //returns false

$department = implode(',', $CustomFields->field('jr_department',$output)); //returns false

$department = $CustomFields->field('jr_department',$output); //returns "array"

 

I just can't seem to land on the right combo. I've searched the help, but can't find it.

I can loop through the array and associate values back to text, but that seems inefficient. You have to have an easier method!

Please help!

Link to comment
×
×
  • Create New...