Skip to product menu
Skip to main content

String List

The value for this input datatype will be available in the session object in the following format:

Attribute NameDatatype Description
metamapString List Meta (A)
valuestring

The String list has to be set here.

Ex: "123", "Hello there!","How are you?"

String List Meta (A)

Attribute NameDatatype Description
typeStringValue should be 'stringlist'
valueString

The String list has to be set here.

Ex: "123", "Hello there!","How are you?"


Note: The maximum number of values passed in the list is 30.

Sample Code:

Copied{
      "value":[
             "123",
             "Hello there!",
            "How are you?"
       ],
       "meta":{
            "type":"stringlist",
             "value":[
                   "123",
                   "Hello there!",
                  "How are you?"
            ]
      }
}

Format to be returned in response object:

Copiedresponse=map();
items = List();
items.add("123");
items.add("Hello there!");
items.add("How are you?");
response.put("stringlist", items);
return response;