Re: Screen/Form Fields

2011-01-11 Thread Tim Sawyer
Yep, something like this (which is off the top of my head - syntax /detail may be incorrect!) Pea Fish Bean Then, in jQuery $('#flavours').change(function(){ var lValue = $('#flavours').val(); if (lValue === "P"){ $('#toppings').show(); } else {

Re: Screen/Form Fields

2011-01-10 Thread hank23
Regarding question two from above (displaying messages without text input boxes): I want to display the fields as informational at least for now only as a debugging tool, but may keep one of them later after I've pretty much got the screen format finalized. That's why they should be label fields

Re: Screen/Form Fields

2011-01-10 Thread hank23
So in the widget attrs for the dropdown I should define an event and a javascript function to call whenever the event (like onclick) fires? So where's a good place to find the javascript code to actually display the field? So do I make the field I want to display originally a hidden field and then

Re: Screen/Form Fields

2011-01-10 Thread Tim Sawyer
On 10/01/11 17:44, hank23 wrote: First is it possible to conditionally hide a form field on a screen until an item from a dropdown box has been selected? If so how can that be done? Yes, but you'll have to use jQuery or similar and script it with JavaScript, so that when the droplist changes

Re: Screen/Form Fields

2011-01-10 Thread Shawn Milochik
On Jan 10, 2011, at 12:54 PM, hank23 wrote: > Is there something like a label widget available? If so where is it > defined? I didn't notice it listed in the forms wigdets document at: > > http://docs.djangoproject.com/en/1.2/ref/forms/widgets/ > I just found this. Hopefully someone will let

Re: Screen/Form Fields

2011-01-10 Thread hank23
Is there something like a label widget available? If so where is it defined? I didn't notice it listed in the forms wigdets document at: http://docs.djangoproject.com/en/1.2/ref/forms/widgets/ On Jan 10, 11:46 am, Shawn Milochik wrote: > 1. AJAX (try jQuery). > > 2. Change

Re: Screen/Form Fields

2011-01-10 Thread Shawn Milochik
1. AJAX (try jQuery). 2. Change the field's widget. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Screen/Form Fields

2011-01-10 Thread hank23
I have a couple of questions regarding formatting fields on a screen which are coming from a form. First is it possible to conditionally hide a form field on a screen until an item from a dropdown box has been selected? If so how can that be done? Second I have some message fields defined in a