I am trying to do a read only view of my form using the elements() method of the form;

Although I cant seem to figure it out.

I am doing the following

in view.html

{{for k in form.elements():}}
{{= k }}

{{pass}}


Not quite the result i am looking for.

I want to be able to while looping check to see if each field should be displayed.

(Yes I know I can set the property on the db.table ie readable/and writable however I want to do it manually based on runtime)

Thanks.


Reply via email to