What I am saying is, shouldn't my code below put "joe" in the input
field by grabbing the current value in the database?  It is getting
None instead of "joe"

On Mon, Nov 10, 2008 at 4:33 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> that if because last name does not have a default.
>
> you can either do default='' in model or {{=form.latest.last_name or
> ''}} in the view.
>
> I cannot set form.latest.last_name automatically to '' if no default
> because it is not quite the same. Since this is a custom view I do not
> know that you will be using a test field.
>
> Massimo
>
> On Nov 10, 5:20 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
>> ok this time it works with:
>>
>> {{include}}
>>
>> <form enctype="multipart/form-data" class="t2-update" action="" 
>> method="post">
>>
>> <label>{{=db.student.last_name.label}}</label>
>> <input name="last_name" value="{{=form.latest.last_name}}" />
>> {{if form.errors.last_name:}}{{=form.errors.last_name}}{{pass}}
>> <input type="submit" />
>> {{=form.hidden_fields()}}
>>
>> </form>
>>
>> but the last-name input has "None" in it for the value.  I have
>> {{include}} just above it and the value in that is correct with
>> "joe"....
>>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to