Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
{{AVMWarning}}
AVM
When a user requests a web form, an XForm is dynamically generated from the XML schema, and any dynamic includes / imports listed in the XML Schema are executed. The XForm is then interpreted to produce an HTML form, which is presented to the user and used to capture the data that ends up in the XML document saved into the repository.
There are three extension points in this process:
Alfresco ships with most common widgets you'd expect in a Web CMS, including single- and multi- line text editors, an HTML editor, a date picker, option and radio buttons, drop down lists etc. However there are cases where you may need a custom widget, for example to perform lookups in some external system. Alfresco Web Forms leverage the widget mechanism of the Dojo Javascript framework for all field-level widgets - creating a custom Alfresco Web Form widget involves developing a custom Dojo widget and then registering it with Alfresco for use in Web Forms.
Detailing how Dojo widgets are implemented is beyond the scope of this document, however Alfresco recommends a two step process for developing and integrating custom Dojo widgets into Alfresco:
Integrating a custom Dojo widget into Alfresco involves:
Note that the registration process is currently not as clean as it should be and will be improved in a future version of Alfresco - JIRA tickets WCM-786 and WCM-1045 are tracking these issues.
Return to WCM Forms Developer Guide