Comments (8)
@chrisweconect I will introduce onQuestionCreating event and will do an example. It will be available in the next minor. I think we will release it early next week.
You will be able to try it early if you build the library by yourself. The instruction in the readme file.
Please follow these issues:
#51
#52
Thank you,
Andrew
from survey-creator.
@chrisweconect At the current moment there is no way to make the property read-only in the editor. You may only hide it. Additionally the name property can be added in the question editor as well.
Do you want to hide it completely or do you want to make it read-only?
We will have to add an event or something in the API to support read-only properties.
About custom name generation - I think the best solution is to have onQuestionCreating event, where a new created question will be passed, before adding it to the survey. On this event you will be able to change any question property including the name.
Will it work for you?
Thank you,
Andrew
from survey-creator.
@andrewtelnov - Thanks for the quick reply. We would prefer to make the "name" field read-only. How do we create an onQuestionCreating event? Any example of how to do that?
Thanks,
Chris
from survey-creator.
@andrewtelnov - Any updates making the "name" field read-only? Or making the "name" field a unique ID? Looking forward to this update.
Thanks,
Chris
from survey-creator.
@chrisweconect I am working on it right now. I have introduced readonly attribute for JsonProperties a week ago: surveyjs/survey-library@929917d
At the current moment I am changing the editor.
I'm fully refactoring the first ("General") tab of the Question Editor. I want to give the ability to add/remove properties and customize the layout of "General" tab. At the current moment it is hardcoded.
I'am not sure about this week, but definitely on the next week you will have this functionality.
You will have to include the following code:
JsonObject.metaData.findProperty("questionbase", "name").readOnly = true;
Thank you,
Andrew
from survey-creator.
@andrewtelnov - Thanks!
I look forward to this new release.
Chris
from survey-creator.
@chrisweconect
It is implemented:
#52
#62
We will make a release on the next week. If you need it early, you have to rebuild surveyjs library and editor.
Thank you,
Andrew
from survey-creator.
@chrisweconect Here is the demo
from survey-creator.
Related Issues (20)
- Impossible to override the survey settings action tooltip HOT 1
- Select-based questions: Users can add new choice options even though item addition is disabled using the `onCollectionItemAllowOperations` event
- An empty page placeholder and page adorners are unavailable in strict mode
- Multi-Select Dropdown - Inconsistent padding between settings in a property grid
- Select-based questions: The `commentText` property is unavailable in Property Grid
- Property Grid - The Expression property of an Expression matrix column appears with a lowercase letter
- Enhancement: File upload does not have file count validation.
- Move tabs titles into "tabs" key in localization files
- Condition editor: Long question names are not trimmed
- Reordering / Dragging of ranking questions in logic builder has poor placement
- A drag icon appears far from the mouse pointer when applying the `zoom` CSS attribute to a SurveyJS Creator container HOT 1
- Survey title goes missing after a header background image is uploaded
- The Cannot convert undefined or null to object exception is thrown when the Themes tab is activated HOT 1
- Themes Editor - Add a Reset option to color editors to reset the property to the initial theme's color
- feature request: Option to display choice label instead of value in logic tab HOT 2
- paneldynamic custom description for add button HOT 1
- Theme Editor: It's impossible to enable the advanced header after changing the theme name in code
- Question Numbering - Disable question numbering by default
- Property Grid shouldn't immediately display a new page's settings if this page is added using the Pages table
- Theme Editor: Custom fonts are missing from the font list
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-creator.