Можно ли зациклить 3 типа вопросов, прежде чем отправлять их на локальное хранилище? Можно ли конвертировать в SQL? Я использую sequelpro.
Я только изучаю руль, и он также будет использовать bootstrap. У меня есть базовое значение c HTML, а затем я хотел бы знать, возможно ли превратить его в SQL вместе с использованием рулей вместо HTML
var json = {
questions: [
{
type: "rating",
name: "satisfaction",
title: "How do you feel about the product?",
minRateDescription: "I think it's terrible",
maxRateDescription: "I think it's great"
}
]
};
var json = {
questions: [
{
type: "matrix",
name: "Quality",
title: "Please indicate if you agree or disagree with the following statements",
columns: [
{
value: 1,
text: "Strongly Disagree"
}, {
value: 2,
text: "Disagree"
}, {
value: 3,
text: "Neutral"
}, {
value: 4,
text: "Agree"
}, {
value: 5,
text: "Strongly Agree"
}
],
rows: [
{
value: "caring",
text: "I believe the product is quality"
}, {
value: "value",
text: "I believe the product is worth the price"
}, {
value: "I feel included",
text: "I feel like the product will enhance my life"
}, {
value: "opportunities",
text: "I believe the product will create new opportunities in the future"
}
]
}
]
};
var json = {
questions: [
{
type: "comment",
name: "suggestions",
title: "What changes would may your workday better??"
}
]
};
window.survey = new Survey.Model(json);
survey
.onComplete
.add(function (result) {
document
.querySelector('#surveyResult')
.textContent = "Result JSON:\n" + JSON.stringify(result.data, null, 3);
});
$("#surveyElement").Survey({ model: survey });