Keyword

"Multi-select list" result in a loop?

  • web_dev
  • web_dev's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 4 months ago #128967 by web_dev
"Multi-select list" result in a loop? was created by web_dev
Hi,

i have extra field with type "Multi-select list", my question is how can i get his values with a loop?

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #128968 by Lefteris
Replied by Lefteris on topic Re: "Multi-select list" result in a loop?
Hi. Try this:
$array = explode(', ', $extraField->value);
foreach($array as $value)
{
echo $value;
}

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • web_dev
  • web_dev's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 4 months ago #128969 by web_dev
Replied by web_dev on topic Re: "Multi-select list" result in a loop?
It works, many thanks.

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #128970 by Lefteris
Replied by Lefteris on topic Re: "Multi-select list" result in a loop?
You are welcome.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum