Skip to content

A simple field plug-in to demonstrate using field metadata.

License

Notifications You must be signed in to change notification settings

surveycto/feature-demo-metadata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Field plug-in feature demo: metadata

A text field using this plug-in

Description

This field plug-in is meant to demonstrate how to use field metadata. It adds a second input box below the regular text input, which will store metadata. This value is stored separately from the field's response. From the developer documentation for field plug-ins:

Your field plug-in can store metadata alongside response data. This metadata can be accessed by other fields in the form using the plug-in-metadata(field) function. This can be used to pass information from your field plug-in to other parts of the form. See this page for more info about form functions including plug-in-metadata(field).

Note: this field plug-in is not intended to be used to collect actual data. It is intended for demonstration/testing purposes.

Download now

Data format

This field plug-in requires the text field type.

How to use

Getting started

  1. Download the example form extras/example-form from this repo and upload it to your SurveyCTO server.
  2. Download the feature-demo-metadata.fieldplugin.zip file from this repo, and attach it to the example form on your SurveyCTO server.

More resources