Introduction
A web application is a software or a collection of instructions run when a client accesses a specified URL. Web applications are created using a variety of programming languages, but beginning from scratch may be time-consuming. We make use of the Web Frameworks for this purpose.

One of the most well-known web frameworks is the Web2Py framework. While developing web content, we may want to add an extra element to your form after it has been produced on occasion, or there are occasions when we want to use SQLFORM to create a form from a database table and validate a submitted form. Still, we don't want any automatic INSERT/UPDATE/DELETE in the database.
In this article, we will discuss the methods Web2py provides for adding extra form elements to SQLFORM, generating a form from a database table using SQLFORM and validating the submitted form accordingly, without any automatic INSERT/UPDATE/DELETE in the database.
Adding extra form elements to SQLFORM

We may want to add an extra feature to our form after it has been developed. For example, we may want to include a checkbox that certifies the user agrees to your website's terms and conditions:
form = SQLFORM(db.yourtable)
my_extra_element = TR(LABEL('I accept the terms and conditions),
INPUT(_name='agree', value=True, _type='checkbox'))
form[0].insert(-1, my_extra_element)
In the above example, my_extra_element should be modified to match the form style, and the default formstyle='table3cols' was assumed. After submission, form.vars.agree will have the checkbox state, which may subsequently be used in an “onvalidation” function.






