CML Overview
CML is CrowdFlower Markup Language. CML is made up of a set of helper tags, which makes defining forms to collect information from our labor pools quick and painless.
The interactive form builder automatically generates most of these helper tags. If you need more control over your forms, or you simply prefer interacting with CrowdFlower through the API, CML is for you.
Why CML?
CML has 4 main advantages over raw HTML:
- CML automatically namespaces form elements. Because we display multiple forms in a single page, all form elements must be properly namespaced. CML takes care of that for you.
- CML lets you write less markup. There is no need to wrap your form elements in containers or add labels, CML writes all the extra markup for you.
- CML stores meta information specific to the CrowdFlower platform. Gold specification and directives for how you want your data aggregated are specified directly on the form elements.
- CML makes input validation simple. For instance, add
validates="required numeric"to any CML tag, and you can be sure you’ll get only numbers back in your form data for that tag.