Questions about Payment Form extension

Height of multiselect field

  • kbarnes
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 3 months ago #13200 by kbarnes
Height of multiselect field was created by kbarnes
Hello, the multiselect field in Payment Form defaults to 4 rows high. I would like to increase that so 7 rows are displayed. Can you point me where I can make that change?

Thanks in advance for your help!

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

More
12 years 3 months ago #13233 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Height of multiselect field
Hi

I am sorry, the size was hardcoded to 4. I will change it in the next version of the extension. For now, please follow the instruction below to change it :

1. Open the file components/com_pmform/helper/fields.php

2. Find the function _renderMultiSelectOutput

3. In that function, find the code below :
Code:
echo JHTML::_('select.genericlist', $options, $row->name.'[]', ' multiple="multiple" size="4" ', 'value', 'text', $selectedValues);

Change it to :
Code:
echo JHTML::_('select.genericlist', $options, $row->name.'[]', ' multiple="multiple" size="7" ', 'value', 'text', $selectedValues);

After that, it will work as expected !

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc