Hi!
I have a custom question.
JavaScriptconst pacientAge = {
name: "pacientage",
iconName: "icon-default",
title: "Pacient Age",
elementsJSON: [
{
name: "birthdate",
title: "Pacient birth date",
type: "inputdate",
},
{
name: "proceduredate",
title: "Procedure date",
type: "inputdate",
},
{
name: "pacientage",
title: "Pacient age",
type: "expression",
},
],
onAfterRender(question, htmlElement) {
htmlElement.className += " pacient-age";
},
};
export default pacientAge;
I want to create formula in "pacientage" expression question that references "birthdate" and "proceduredate" values and makes calculations based on their value. How can I reference them?
This is a single complex question.