Forms 2.0 - Javascript APIs
caution
This page is preliminary and subject to change as Forms 2.0 continues to be developed.
Forms 2.0 comes with a JavaScript API, exposed on the global paa object, that lets your own scripts control forms and the other Plant an App modules on the page - showing and hiding a form, opening it as a modal, refreshing a Listing, switching Tabs, driving Search results, and reading or updating the query string.
The API replaces the legacy dnnsf.* API used by the classic Form module. Each section below lists the new method alongside the legacy method it replaces, and the Migration quick reference at the end of the page maps every legacy call in one table.
The API is grouped into namespaces:
| Namespace | Controls |
|---|---|
paa.form | Forms 2.0 forms |
paa.listing | Listings (grids) |
paa.tabs | Tabs |
paa.search | Search results |
paa.common | General utilities (UUIDs, time zones, URLs, query string) |