• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: add hidden="hidded attribute to select list option

add hidden="hidded attribute to select list option 11 years 6 months ago #25516

for dropdowns with RS Forms Pro we already have the ability to:
  • indicate default selection by adding [c] after the item to render the attribute selected="selected"
  • prevent an item from being selected by adding [d] after the item to render the attribute disabled="disabled"
but to hide an item in the dropdown list (i.e. "please select" option) has not been possible.
I have modified the code of administrator/components/com_rsform/helpers/rsform.php to enable the addition of [h] to render the attribute hidden="hidden".
modified lines 620 & 2733
$special = array('[c]', '[g]', '[d]', '[h]');
added after line 647 & after line 2765
if (strpos($item, '[h]') !== false)
$additional .= 'hidden="hidden"';
Thought this may be of value to someone.
note: doesn't seem to work with IE and Safari, but hey......
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!