in reply to Show / hide text field in cgi.pm application
You need some javascript to do this. In your header include the following:
And in your CGI.pm generated text fields, include properties<script language='text/javascript'> var oText=document.getElementById('MyTextField'); function toggle_display(n) { if (n=='show') { oText.style.visibility='visible'; } else if (n=='hide') { oText.style.visibility='hidden'; } } </script>
It's really more of a javascript/css problem, but it can be solved within the CGI.pm framework.for the controlling field: onchange=>'toggle_display(this.value)' for MyTextField: id=>'MyTextField'
HTH,
SSF
In Section
Seekers of Perl Wisdom