2

The Form Field Type Combo doesn't make any sense to me according to the documentation.

It doesn't offer any configuration option to define a list of options.

If it's only meant to be the base for user defined field types, then why can you add it to your XML?

Or how do you define it's options?

1
  • I managed to update the documentation now, but I cannot confirm that the <option>s work?
    – Andy
    May 2, 2016 at 12:51

1 Answer 1

1

The source code shows that combo inherits from list, hence uses the same getOptions() method.

So you should be able to define options for combo just the same way as for the List Form Field Type:

<field name="fieldname" label="fieldlabel" type="combo">
  <option value="1">Option 1</option>
  <option value="2">Option 2</option>
</field>
2
  • I wanted to correct the documentation, but even after registering I don't have any rights to edit, neither to start a discussion there.
    – Andy
    Apr 27, 2016 at 11:36
  • I'm having trouble confirming this solution, because adding <option> Elements doesn't have any effect in my Joomla installation, even after refreshing the cache for the extension and bumping the revision.
    – Andy
    Apr 27, 2016 at 11:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.