Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Information collector basics

How Exponential's information collector works for public-sector forms - collector attributes in a class, the form template posting to content/action, the form, feedback and poll types of collect.ini, the result page or…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/building/forms/information-collector-basics.md

On this page

Information collector basics

This page is for website creators and administrators who build their first form for a public-sector site. It summarizes how the information collector works, with the settings that matter, and points to the full guides: Forms with the information collector and Collected information.

Contents

  1. How it works
  2. The shipped form classes
  3. Form types and their settings
  4. After sending
  5. A first form, step by step

How it works

  1. A content class has attributes marked Information collector in the class editor. Visitors fill those in; editors fill the other attributes (a title, an introduction).
  2. An editor creates an object of the class; its full view shows the form.
  3. The form posts to content/action with the button ActionCollectInformation; each collector attribute is checked by its datatype (required, valid e-mail ...).
  4. On success one collection is stored, a mail may be sent, and the visitor sees a result page or is redirected.
  5. Staff with the infocollector/read policy read and export the collections in Setup > Collected information (/infocollector/overview).

The shipped form classes

ClassIdentifierCollector attributes
Feedback formfeedback_formSender name, Subject, Message (Text block), Email; plus Name, Description and a Recipient (Email) filled by editors
Pollpollan option list (ezoption)
Contact formng_contact_formin the default package's demo content classes
Advanced feedback formcjw_feedback_formwhere the CJW extensions are installed

Add your own class when you need other fields (Content classes for websites).

Form types and their settings

settings/collect.ini decides behavior per type; an object's type comes from a collection_type attribute, else [InfoSettings] Type=form:

BlockKeyShippedMeaning
InfoSettingsTypeList[]poll, form, feedbackknown types
EmailSettingsSendEmail, SendEmailList[poll]enabled; disabled for pollsmail on submission
DisplaySettingsDisplay, RedirectURLresult, /result page or redirect
CollectionSettingsCollectAnonymousDataenabledvisitors who are not signed in may send
CollectionSettingsCollectionUserData, CollectionUserDataList[poll]multiple; unique for pollsone answer per user for polls

Change them in settings/override/collect.ini.append.php or per siteaccess, then clear the INI cache (php bin/php/ezcache.php --clear-tag=ini).

After sending

SettingEffectUse for
Display=resultthe type's result template shows the sent valuespolls (results)
Display=redirect with RedirectURLthe visitor goes to a pageforms: a "thank you" page that says what happens next and when

A redirect also stops a reload from sending the form again.

A first form, step by step

  1. Create a folder "Contact" in the tree.
  2. Create new > Feedback form: name "Contact us", a description saying what happens with the message and how long it is kept, and the recipient mailbox of the team.
  3. Send for publishing; open it logged out; send a test message.
  4. Open Setup > Collected information: the form is listed with one collection.
  5. Check the mail arrived (test with the file transport first: Mail to receivers).

For every detail: Building a contact form, step by step.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x