Supported Data Types
- string – (type=string), will be represented as textbox in Send Experience UI if inputRequired = true. User could enter anything in such a text box. (inputRequired could be true/false)
- number – (type=number), will be represented as textbox in Send Experience UI if inputRequired = true. Such text box will accept only numbers and decimal point as valid input. (inputRequired could be true/false)
- boolean – (type=boolean) If inputRequired = true will be represented as toggle button (Yes/No) in Send Experience UI (inputRequired could be true/false)
Note: SDK supports only true/false. If developer’s app support only yes/no, or 1/0, then he/she needs to use the “string” data type. Even though UI would show Yes/No toggle button, but we will send true/false to SDK. Please note that true or false values should be entered without quotes. However, if user wants to force marketer to enter the value, he/she could enter empty string “” only when the inputRequired is true.
- object – (type=object) – NO Send Experience UI – pass through only ( data need to be escaped so that it doesn’t break JSON syntax – see example above – inputRequired is false only)
- datetime – (type=datetime) – format date/time as a String using ISO-18601 (inputRequired should be false) Datetime format in ISO-18601 is:
- Without time component: yyyy-mm-dd
- example: 2015-02-19
- Without time zone: yyyy-mm-ddThh:mm:ss.ffffff
- example: 2015-02-19T15:53:00
- With time zone: yyyy-mm-ddThh:mm:ss.nnnnnn+|-hh:mm
- examples:
- 2015-02-19T15:53:00+05:00
- 2015-02-19T15:53:00-05:00
- 2015-02-19T15:53:00+00:00
- examples:
- Without time component: yyyy-mm-dd
- any other type – YES, NO Send Experience UI – pass through only (inputRequired is false only)