3

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?

  • I managed to update the documentation now, but I cannot confirm that the <option>s work? – Andy May 2 '16 at 12:51
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>
  • 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 '16 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 '16 at 11:41

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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