Comments (8)
@PankajKumawat125 you may get a question and set the choices:
var question = survey.getQuestionByName("myQuestionName");
question.choices = [1, 2];
//or
question.choices = [{value: 1, text: "item 1"}, {value: 2, text: "item 2"}];
Thank you,
Andrew
from survey-library.
Please refer to this issue: #67
from survey-library.
Hi,
I have implemented the first variant of the feature. Could you check it out?
I am going to work on property editor now. I also thinking about having a parameter support in the url. For example, when you have the employee list and you may show it only after the person select the department. So you do not show the full list, but filtered by a parameter, previous answered question value. Do you need this?
Thank you,
Andrew
from survey-library.
Please, take a look at: http://surveyjs.org/examples/questiontype-dropdownrestfull.html
from survey-library.
Hi,
Can i call a function in js instead of URL for fetching data and bind with dropdown?
from survey-library.
@andrewtelnov Perfect. work fine.
Can you help me with one more thing ?
If i want to pre-select one of the value and show the dropdown then How do i do that?
from survey-library.
@PankajKumawat125 survey.setValue("YourQuestionName", defaultValue); example
or use the defaultValue property in the question, defaultValue: yourDefaultValue.
Please go through our demos. You are asking very basic questions.
Thank you,
Andrew
from survey-library.
@andrewtelnov Well, I have already done that. i was just going to delete my 2nd question.
and
In this case it was fetching dynamically, that is why i asked you this question!
Anyways thank you so much for your help
from survey-library.
Related Issues (20)
- Add survey.onMatrixDetailPanelVisibleChanged event
- Drag-and-drop doesn't work with shadow DOM HOT 4
- Implement External Form Navigation Demo doesn't work for jQuery HOT 1
- Single-Line Input: The caret skips the next character after typing a Thai vowel
- Make library compatible with CSP require-trusted-types-for HOT 1
- Ranking + Dynamic Matrix. Drag-n-Drop Issue HOT 1
- Thank You message is invisible in Contrast Dark Theme HOT 1
- Setting matrix column width in pixels doesn't work when the survey's `widthMode` is `"auto"`
- Angular crashes on first website when adding Radio Group HOT 3
- The currency masked input doesn't work when on specific min and max values HOT 1
- [Angular] Panel: A required mark is painted black instead of red
- Progress Bar: The last page is never selected regardless of answers on this page
- Scroll appearing shifts a survey. HOT 1
- Password Masking Feature - Implement an option to replace typed characters with an asterisk (*) to conceal sensitive data and prevent it from being read
- Multipletext question add mask support
- Add time support into datetime mask type
- Add text aligment property into numeric mask type
- How to customize multiple select UI when click to select field in mobile view HOT 1
- `showPreviewBeforeComplete` causes duplicate questions to appear in the preview results screen in Survey Creator HOT 5
- Matrix column settings: The `setValueExpression` property value disappears after switching between tabs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from survey-library.