It doesn’t work in Firefox 1.5.0.1 under Solaris

 

It does work in 1.5.0.3/Windows

 

Thanks

 


From: Stuart Thorne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 1:46 PM
To: [email protected]
Subject: RE: CForms: conditional display of widgets

 

Hi,

 

You could use client-side _javascript_?

 

Add an onkeypress / onclick event on your drop-down menu, which triggers a _javascript_ 'show / hide' function.

 

The _javascript_ 'show / hide' function on changing the drop-down value should set the CSS property for your dynamic widget to be displayed as {display:none} / {display:block or inline}

 

For Accessibility:

 

By default the CSS display property for the dynamic widget should be set to display:block / inline.

 

Then use the _javascript_ document.write to write out the display on the rendered html page as {display:none}, for the dynamic widget. That way if the web user does not have _javascript_ available / enabled, your dynamic field will appear by default.

 

 

Hope this helps,

 

Stuart

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 07 June 2006 12:31
To: [email protected]
Subject: CForms: conditional display of widgets

How can I do to display a certain widget in a form only if a specific condition is met?

 

Depending on the value of a drop-down menu in the form, another widget should be displayed or not,

dynamically, not only when the form is first presented.

 

Thanks

Reply via email to