Virtual Forms in OpenVX
A typical virtual form template has a short header section followed by a series of "FIELD"'s. Each field corresponds to a single piece of data being collected. Note that here, a single piece of data may in fact be a list of entities.
VX will process each field request until it hits a trigger statement. At this point a call is made to the function on the right-hand side of the "function=" specifier along with an index to the collected data.
Fields which appear after the trigger statement are taken to be optional inputs (max 4) and appear as command option command option buttons below the text input window.
Once a template is complete, it can be made available to VX by compiling it into a local copy of Forms.VX.
To compile and add a single template type in:
vx -t template_file Forms.VX
If you have a directory which contains multiple templates then you may compile and add them all by typing in:
vx -d template_dir Forms.VX