Hi All!,
Thanks to all for your reply!
Mr.Anthony's answer really helped as i tried out the first method using:-
{{=form.element(_name='agree')}}
As for Mr.Cornelius, your answer was also useful but i did not want to
access the value of the input field in the view.Rather I wanted to access
the field itself(to allow user to input values in it).But any way thanks
for it!Yours Sincerely, Rahul Priyadarsi. On 6 June 2012 18:40, Cornelius Kölbel <[email protected]>wrote: > Hello Rahul, > > I think you should be able to access it as > > form.vars.agree > > which would either be "on" or None. > > Kind regards > Cornelius > > Am 06.06.2012 13:45, schrieb rahulserver: > > I added this extra element to my sqlform (as given in web2py book chapter > forms and validators): > > form = SQLFORM(db.yourtable)my_extra_element = TR(LABEL('I agree to the terms > and conditions'), \ > > INPUT(_name='agree',value=True,_type='checkbox'))form[0].insert(-1,my_extra_element) > > But when i tried to access it in view as > {{=form.custom.widget.my_extra_element}} (between form.custom.begin and > form.custom.end) i am getting a none instead of a checkbox. > > {{=form}} does give the output as desired. But i wish to make a few > customizations in the form so i am trying the custom form approachfo.So > what is the way to access the extra sqlform elements from views? > > >

