Closed andrewtelnov closed 6 years ago
thank you! Are you considering defaultPanelValue
for dynamic panel too? It should work exactly the same
@masciugo defaultPanelValue is already implemented. Do you have any forms/surveys where defaultRowValue and defaultPanelValue could be used? We are looking for good data to make examples.
Thank you, Andrew
@andrewtelnov We use surveyjs in a clinical context where doctors fill in survey as patient's clinical record. I'm afraid our examples are too specific but we usually use defaults for new panels/rows when most of their inputs are almost always the same and we need to save doctor's time during form filling. For example we store array of gene mutations whose positions are commonly identified using a reference genome. The reference genome version changes not very often
@andrewtelnov what is the difference in using these defaultPanelValue
and defaultRowValue
properties and setting a default on the actual question within the row or panel with defaultValue
?
@kaphert defaultValue works for any question. It allows in Builder set the default value for the question. It equals to: survey.setValue("questionName", defaultValue); defaultRowValue is the value that assign to the new added row in matrix dynamic question and defaultPanelValue is the value that assign to the new added panel in the panel dynamic question.
I hope it makes sense to you now.
Thank you, Andrew
If this property is defined
defaultRowValue: {column1: columnValue1, column2: valueValue2, ...}
then all new rows will be set with predefined data. Rows can be created from UI or by setting rowCount property.