• 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: show text / info on selected dropdown item

show text / info on selected dropdown item 13 years 6 months ago #11732

Please advice.

I need to to this:

www.rsjoomla.com/customer-support/docume...-or-hide-fields.html

but with dropdown menus selection.

Can I use the same ?
The administrator has disabled public write access.

Re:show text / info on selected dropdown item 13 years 6 months ago #11739

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 726
  • Thank you received: 59
Hello,

In order to use a dropdown field instead of a radio group you will need to perform some modifications to the script. Please try using:
<script type="text/javascript">
function displayField()
{
document.getElementById('hide').style.display="none";
 
if(document.getElementById('d1').value == your_first_dropdown_value)
document.getElementById('hide').style.display="none";
 
if(document.getElementById('d1').value == your_second_dropdown_value)
document.getElementById('hide').style.display="";
}
window.addEvent('domready', function() {
 
displayField();
 
});
 
</script>
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
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!