1 Reply Latest reply on Jul 17, 2012 2:14 PM by orotas

    Is there a way to create reusable HTML Forms that can be used on multiple pages?

    djprice27

      I'm trying to understand the recommended approach to managing 10 HTML forms that will be reused on many different pages.  I want to be able to modify the form definition once and have the change propogate.

        • 1. Re: Is there a way to create reusable HTML Forms that can be used on multiple pages?
          orotas Level 4

          Is your requirement that authors be able to change the form definition, or should form definition be controlled by developers?

           

          In the case of authors being able to change the form definition then I would say best practice would be to create a page that holds the form definition (using whatever components work for you - either the out of the box form components or something custom). Then use the reference component to point the definition in all the other locations you want the form to appear. One thing to note is if you are using dispatcher for caching you need to make sure you strategy for cache flushing accomadates this approach.

           

          In the case of developers controlling the form definition you could crate a component for each form, and then simly drag that component onto the pages that require the form. In this case your would control all the form label and description elements in the localization file.