Here's the view which has the form. 

{{extend 'layout.html'}}

<h2>New Item</h2>
{{=form.custom.begin}}
Type: {{=form.custom.widget.category}}<br><br>
Title: {{=form.custom.widget.title}}<br><br>
Link: {{=form.custom.widget.link}}<br><br></div>
Comment: {{=form.custom.widget.comment}}<br><br></div>
{{=form.custom.submit}}
{{=form.custom.end}}

On Thursday, November 6, 2014 7:35:57 PM UTC-6, Massimo Di Pierro wrote:
>
> Can you show us your form? Do you use {{=form.custom.widget[field]}} or 
> <input..../>. The latter is not supposed to work
>
> On Thursday, 6 November 2014 09:45:10 UTC-6, Jeremiah Peterson wrote:
>>
>> in my controller I have 
>>  
>> db.news.link.show_if = (db.news.category==1)
>>  
>> In my view if I just use {{=form}} then it will only show the 'link' 
>> field if the category field is set to 1. 
>>  
>> However if I use {{=form.custom.begin}} so can I can place my form fields 
>> in the order I want, it doesn't make that link field conditional any 
>> longer. 
>>  
>>  
>> Is there a way to fix this, or is there a way to use {[=form}} and have 
>> my fields show up in the order I want them too?
>>  
>> Thanks,
>> Jeremiah
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to