I sloved this problem, need to set the default value of checkbox before rendering of form (i.e htmlfill.render(form, defaults)).
Thanks every one Shannon -jj Behrens wrote: > Check the HTML source within your browser. Does it say what you > wrote? Are you using FormEncode's htmlfill, and if so, is it setting > default values for you? By the way, in my source, I use > checked="checked" as you originally said. > > Best Regards, > -jj > > On 10/3/06, Muhammad <[EMAIL PROTECTED]> wrote: > > > > > > I checked the checkbox with parameters selected='selected', still when > > the form is rendered in the browser the checkbox is not checked as > > default. > > > > Regards > > > > Muhammad Iqbal > > > > > > Graham Stratton wrote: > > > Muhammad wrote: > > > > > > > Hi, > > > > > > > > I like to make a change to the webform and default a > > > > checkbox="CHECKED", but it is not working. > > > > > > > > Could anybody advise on solving this? > > > > > > > > > > > > <label name="fieldname">label.</label> > > > > <input type="checkbox" checked='checked' name='fieldname' > > > > id='fieldname' value="Yes" /> > > > > > > > > When rendered in the browser, the checkbox is not checked by default. > > > > > > I seem to remember having made this mistake on a few occasions. I > > > think you want selected="selected" instead. > > > > > > Regards, > > > > > > Graham > > > > > > > > > > > > -- > The one who gets the last laugh isn't the one who did the laughing, > but rather the one who did the writing. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss -~----------~----~----~----~------~----~------~--~---
