Jump to content

Recommended Posts

Posted

Inside the ProFields Table I have one column of type "select" for which I entered several options to choose from. 

How can I return these options? I mean loop through them to build my markup.

Posted

The API for this is kinda ugly but it works.

Where "3" is the number (in order) of the subfield / column you are looking for.

image.png.6e1ff7cbc71f5e4d10d836cf49456f87.png

  • Like 1
Posted

thanks!

I figured out my own approach, works as well…

$cols = $page->table->getColumns();
foreach($cols[10]['options'] as $opts => $value) {
	$out .= '<option value="'.$value.'">'.$value.'</option>';
}

 

  • Like 1
Posted
4 minutes ago, fruid said:

I figured out my own approach, works as well…

I think that is actually the approach I've used in the past as well!

  • Like 1

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
×
×
  • Create New...