surveyjs / survey-creator

Scalable open-source survey software to generate dynamic JSON-driven forms within your JavaScript application. The form builder features a drag-and-drop UI, CSS Theme Editor, and GUI for conditional logic and form branching.
https://surveyjs.io/open-source
Other
862 stars 363 forks source link

Allow to edit question and panel descriptions on designer surface - Description Placeholder doesn't appear for newly added questions #3889

Closed andrewtelnov closed 9 months ago

andrewtelnov commented 1 year ago

If the description is empty for questions and panels, then the only way to enter the text is to use to the proprety grid. Suggestion: allow users to enter the description for questions and panels from the design surface, like it's done for a survey and pages: image


Source issue: T12334 - Allow descriptions to be added to fields and panels in-line

andrewtelnov commented 1 year ago

The following code is working for showing panel title and question description:

Survey.Serializer.findProperty("question", "description").placeholder = "Enter question description";
Survey.Serializer.findProperty("panel", "title").placeholder = "Enter panel title";
JaneSjs commented 10 months ago

+1 T14525 - Display question description with placeholder inline in Creator https://surveyjs.answerdesk.io/internal/ticket/details/T14525

JaneSjs commented 10 months ago

@andrewtelnov, undortunately, the above code doesn't work for newly added questions. image

https://codesandbox.io/s/brave-breeze-gkyzwr?file=/src/SurveyCreatorComponent.jsx

andrewtelnov commented 9 months ago

The issue is fixed by this PR in the library.

Thank you, Andrew