- Posts: 36
- Thank you received: 2
Questions about Payment Form extension
Height of multiselect field
- kbarnes
- Topic Author
- Offline
- Junior Member
-
Less
More
13 years 2 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!
Thanks in advance for your help!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Online
- Administrator
-
13 years 1 month 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 :
Change it to :
After that, it will work as expected !
Regards,
Tuan
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
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.