This documentation describes the usage of FormBuilder sources, as well as how to write your own source adapter.

An external source is invoked by using the source option to the top-level new() method:

my $form = CGI::FormBuilder->new(
source => 'source_file.conf'
);

This example points to a filename that contains a file following the CGI::FormBuilder::Source::File layout. Like with the template option, you can also specify source as a reference to a hash, allowing you to use other source adapters: