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 {
$('#toppings').hide();
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 on
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
Pay attention to the notice about how this method (highest-ranked
answer) doesn't actually remove it from the form, and a malicious user
can still POST a value.
Why include it in the form if you can't change the value? Just pass the
thing you want to be display only to the page separately and
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 y
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 u
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 the field's widget.
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
django-users+unsubscr...@goo
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 fo
9 matches
Mail list logo