• 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: Need a field to appear after a choise in dropdown!

Need a field to appear after a choise in dropdown! 15 years 4 weeks ago #6959

Hi,

Can't figger it out. What i'am trying to do is to appear a text field when an user has made a choice in de dropdown field.

So... people can choise 1, 2, 3, but when the option is not there i want a option for an empty field. So that the user can put the right option by his self.

I hope you get my point?

Thanks for the support!

Maurice Foppen
http://www.polytek-webdesign.nl
The administrator has disabled public write access.

Re:Need a field to appear after a choise in dropdown! 15 years 4 weeks ago #6994

  • s31523
  • s31523's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 25
You will need JAVA code in the Form Style tab, after the end of the form tag:

For example, I have a form where a button exists and is disabled. When the user clicks a check box the button is enabled:
<script language="javascript">
document.getElementById('ExecuteDeleteButton').disabled=true;
 
document.getElementById('NumRecords').disabled=true;
 
 
function updateExecuteButton (){
document.getElementById('ExecuteDeleteButton').disabled = !document.getElementById('ExecuteDeleteButton').disabled
}
 
</script>

For the button field use the additional attributes to call the function, for example in my checkbox I use:

onclick="updateExecuteButton();"


You could do something similar by having a handler tied to your dropdown box that checks the value and if it is "other" then is enables the text box you want them to use for the value.
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!