Documentation Docs
Documentation Docs

ChoicesRestful

Configures access to a RESTful service that returns choices for Checkbox, Dropdown, Radiogroup, and other multiple-choice question types.

Use the following properties to configure this object:

{
  url: "http://...", // A RESTful service's URL.
  valueName: "value", // Specifies which field contains choice values.
  titleName: "title", // Specifies which field contains display texts for choice values.
  imageLinkName: "imageUrl", // Specifies which field contains image URLs. Used in Image Picker questions.
  // Path to the array of choices. Specify `path` only if the array of choices is nested within the object returned by the service.
  // The following path separators are allowed: semicolon `;`, comma `,`.
  path: "myNestedArray"
}

Typically, you should assign this object to a question's choicesByUrl property.

Inherited from the following class(es):

Base

clone method
fromJSON method
getPropertyByName method
getPropertyValue method
getType method
imageLinkName property
inSurvey property
isDescendantOf method
isDesignMode property
isLoadingFromJson property
isValueEmpty method
onItemValuePropertyChanged event
onPropertyChanged event
path property
registerPropertyChangedHandlers method
setPropertyValue method
titleName property
toJSON method
unregisterPropertyChangedHandlers method
url property
valueName property

Copyright © 2022 Devsoft Baltic OÜ. All rights reserved.

Why we use cookies.

This site uses cookies to make your browsing experience more convenient and personal. Cookies store useful information on your computer to help us improve the efficiency and relevance of our site for you. In some cases, they are essential to making the site work properly. By accessing this site, you consent to the use of cookies.

For more information, refer to DevSoft Baltic’ privacy policy and cookie policy.