vue-custom-form/public/assets/forms.js
2023-08-02 23:48:08 -04:00

47 lines
759 B
JavaScript

export const psychForm = {
name: "Psycological Safety",
steps: [{
prompt: "If you make a mistake on this team, it's held against you.",
fields: [{
type: "range",
value: null,
}],
},
{
prompt: "It is safe to take a risk on this team.",
fields: [{
type: "range",
value: null,
}]
},
{
prompt: "Working with members on this team, my talents are valued.",
fields: [{
type: "range",
value: null,
}]
}],
}
// algo: () => {
// const values = [];
// steps.forEach(s => {
// s.fields.forEach(f => {
// values.push(f.value);
// });
// });
// const sum = values.reduce((p, c) => p + c, 0);
// return sum / values.length;
// }