-
Notifications
You must be signed in to change notification settings - Fork 844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fill choices for dropdown, radio and checkox questions from a restfull service #67
Comments
Could any one comment on this functionality? Thank you, |
FYI: It was implemented. Here is the example |
A new choicesByUrl attribute/object has been added into dropdown, radio and checkox questions.
It has attributes:
url : string - the restfull service web url
path: string - the path the data from returning json. For example, for this service, the path will be: "RestResponse;result".
valueName: string - the name of the value in the json array. If it is empty, the first attribute is used.
valueTitle: string - the name of the title in the json array. If it is empty, the title equals to value.
Here is the example of filling dropdown question with the country list:
{ type:"dropdown", name: "country", choicesByUrl: {url: 'http://services.groupkt.com/country/get/all', path: 'RestResponse;result', valueName: 'name'} }
The text was updated successfully, but these errors were encountered: