Adding an "other" box to a drop-down

exose 28 Dec, 2012
hi,

I have been trying to create greyed out text box when user is selecting dropdown box. While he/she selects "other" option the text box is available.

I tried to follow http://www.packtpub.com/article/adding-features-to-joomla-form-using-chronoforms

but... I am not too sure where I should put the code?

window.addEvent('domready', function() {
  $('hearabout').addEvent('change', function() { 
    if ($('hearabout').value == 'Other' ) { 
      $('other').disabled = false; 
    } else { 
      $('other').disabled = true; 
    } 
  });
  $('other').disabled = true; 
});


thanks for help!🙂
GreyHead 28 Dec, 2012
HI exose,

Please see this FAQ for an update to work with ChronoForms v 4.

Bob
exose 30 Dec, 2012
hi Bob, thanks for your help on this!🙂

However, I still have one issue, I am not able to see "Load JS action" I am using ChronoForms 4.0 RC3.5.1 26.Sep.2012

here is a screenshot:
Adding an "other" box to a drop-down image 1
exose 30 Dec, 2012
thanks, this worked as a charm!🙂
This topic is locked and no more replies can be posted.