Good afternoon.
I have a SurveyJS form with a few panels that are collapsed at opening. See picture 5.
However, when I click on these, the titles show up as a dash (?) in stead of words. See picture 4. The picture refers to 'Charges (Fares, Tolls)' panel.
Is there something I am doing wrong in the way I am naming the panels (and the titles) ?
This seems to be happening with more than one panel. (And this probably was not the behavior when I started learning to use SurveyJS)
Thank you for your time.
Bharathi.
Hello,
It looks like a bug for me. Can you share survey JSON illustrating the issue?
Thanks, Serge
SurveyJS Team
Hello Serge,
Thank you for your response.
-----------------------
A section of JSON code -
{
type: "matrixdropdown",
name: "charges",
state: "collapsed",
title: "Charges (Fares, Tolls)\n",
titleLocation: "left",
columns: [
{
name: "Choose",
cellType: "dropdown",
choices: [
"Yes",
"No"
]
},
{
name: "tripCharges",
title: "Round Trip Charge ($)",
cellType: "text",
visibleIf: "{row.Choose} = "yes"\n",
inputType: "number"
}
],
rows: [
{
value: "toll",
text: "Toll (Per Auto)"
},
{
value: "bus",
text: "Bus (Per Person)"
},
{
value: "airplane",
text: "Airplane (Per Person)"
},
{
value: "limo",
text: "Airport Limousine or Taxi (Out of town only - Per Person)"
}
]
},
Or
You can take a look at CCSS - Travel V3.
Please note that it is in progress.
I have been renaming elements and such and not all formulae work.
Or CCSS – Travel V1. This works .
Thank you so much.
Bharathi.
Hello again,
Can you bring back the ability to collapse/expand the hierarchy/tree in the JSON editor please?
It was very helpful
Thanks again.
Have a great weekend.
Bharathi.
Hello Bharathi,
Thank you for sharing the JSON. This issue seems to occur because of the following setting:
"titleLocation": "left"
. I forwarded it to the team for further research: https://github.com/surveyjs/survey-library/issues/4868.Please follow this thread for further information.
In the meantime, you may wish to remove the
"titleLocation": "left"
attribute to display the title when expanding a panel."type": "matrixdropdown", "name": "charges", "state": "collapsed", "title": "Charges (Fares, Tolls)", "columns": [ { "name": "Choose", "cellType": "dropdown", "choices": [ "Yes", "No" ] }, { "name": "tripCharges", "title": "Round Trip Charge ($)", "cellType": "text", "visibleIf": "{row.Choose} = 'yes'\n", "inputType": "number" } ], "rows": [ { "value": "toll", "text": "Toll (Per Auto)" }, { "value": "bus", "text": "Bus (Per Person)" }, { "value": "airplane", "text": "Airplane (Per Person)" }, { "value": "limo", "text": "Airport Limousine or Taxi (Out of town only - Per Person)" }
The updated example.
Regarding your recent question: I forwarded this suggestion to the team for further consideration.
Expand/collapse the hierarchy/tree in the JSON Editor
Thank you for your ideas!
Please feel free to contact us if you have any questions or require further assistance.
Hi Jane,
I will try that suggestion.
Thank you so much.
Have a fantastic weekend.
Bharathi.
Thank you so much, you too!