3 votes
Accepted

How to show multidimensional data in my CanvasJS chart?

Your original coding attempt is repeatedly overwriting the $dataPoints variable inside of the loop -- this is why you only see the last iteration's data. To create the desired multidimensional array ...
mickmackusa's user avatar
  • 4,791
2 votes
Accepted

Show more than two values from array

Been a while since I used repeatable form fields (deprecated and subform fields should be used instead), but if I rightly remember, the repeatable form fields response format was a little different. ...
Lodder's user avatar
  • 26.9k
2 votes
Accepted

Show images and caption from array as images in carousel

It's how Repeatable field stores its data. Pick a field to iterate over and use its key to access value of another field: foreach ($carousel_images['carouselimage'] as $key => $image) { // do ...
Sharky's user avatar
  • 11.2k
2 votes
Accepted

How can I output each item of a multiple list custom field

I haven't tested this so I could be wrong. But if I rightly remember, a protected object cannot be retrieved by $field->fieldparams->options. Instead, you'll need to use: $options = $field->...
Lodder's user avatar
  • 26.9k
2 votes

How can I output each item of a multiple list custom field

The field options are a registry object so if you've already got the field you can grab all the options with something like: $field_options = $field->fieldparams->toArray(); print_r that and ...
jamesgarrett's user avatar
  • 3,299
2 votes
Accepted

JFactory::getApplication()->input->post->get() prunes empty sub arrays/objects

If you dumped the $_POST in your helper's ajax method you would see that those empty arrays don't hit the server. Joomla's input object is entirely dependent on retrieving the values from $_POST. ...
jamesgarrett's user avatar
  • 3,299
2 votes
Accepted

Joomla getting items via model wrong data type

It is a json encoded string. $images = json_decode($item->images);
David Hayes's user avatar
2 votes

In custom fields, array_values() prints "Array"

PHP array_values returns an array - that's why you get "array" printed out. Most likely if you deal with an array and want to make it a string, then you are after implode($separator, $array); http://...
FFrewin's user avatar
  • 19.7k
1 vote

Creating a multidimensional JForm field dynamicaly

I found a solution that seams to work. Creating the Form without the usual jform control class like this: // $form = $this->loadForm('my_comp.examplegroup', 'examplegroup', array('control' => '...
Mike's user avatar
  • 351
1 vote

In custom fields, array_values() prints "Array"

To construct your tag data in the format that can be echoed into the html, you must convert the data into a string. array_values() does not convert an array to a string, it reindexes (assigns new ...
mickmackusa's user avatar
  • 4,791
1 vote

How to access user-submitted values from a dynamic form?

First, you need to repair your damaged form html // see the missing closing square bracket on each of your name attr ---↓-------------------↓-↓ ...
mickmackusa's user avatar
  • 4,791
1 vote
Accepted

Preprocessing form data before saving to the database

I've figured it out with the help of someone on the Joomla DEV Google Groups (details): I did not have my custom field dancer_id added to the jform array like so: <input id="dancer_id" type="...
Mhaddy's user avatar
  • 51
1 vote

Preprocessing form data before saving to the database

Have you tried retrieving the form input directly without using JFilterInput? Try this: replace: $filter = JFilterInput::getInstance(); with: $dancers = $input->get('dancer','','array'); you ...
Terry Carter's user avatar
  • 1,812

Only top scored, non community-wiki answers of a minimum length are eligible