This is the structure used to represent one Form in a Process.
Field Value Formatting
Form fields are one of the main aspects of RPM’s custom forms and the way they are represented are very simple (we have written a guide on how to format field values inside table fields)
Outside table fields they are simple objects with 2 keys “Name” and “Value”:
Reference fields get an extra ID key with the underlying ID for the selected value:
The Value is always returned as a string:
- text
- date » ISO formatted, e.g. “2017-09-11”, “2017-09-11 14:14:00
-06:00” (no TZ information should be sent or returned).
Note: as of RPM27 nested date/time field return their value in a 12 hour format instead of 24h so the previous exapmle will be 2017-09-11 2:14:00 PM - location » lat/long format “51.03241,-114.036577”
- list » selected option
- multi-select list » “option 1, options 3”
- location list » the description of the selected option (not the lat/long value)
- yes/no » “0” = No, “1” = Yes, “” – No selection
- measurement » include units, e.g. “123 cm”
- duration » in seconds without units, e.g “60” for 1 minute
- money » a decimal number without currency symbol, e.g “123.4567”
- decimal » “123.4567”
- percent » with % symbol, e.g. “123.4567%”
- quantity » “123”
- yes/no list » json with options, selections, etc: {“Values”:[{“OptionID”:5288, “Value”:2, “Comment”:”A comment”} … ]}”