Hello Servoy Guys,
In my method i want to fetch the form title.
I’m doing this
var title = forms[event.getFormName()].titleText;
But servoy says ‘undefined’ ![Rolling Eyes :roll:]()
The sample uses solultion model - surely, it should work in any case - not just for forms created with SM ![Exclamation :!:]()
Am i right?
Help appreciated,
Regards, Jan
Try this and the warning/info will dissapear
var title = forms[event.getFormName()]['titleText'];
is titleText a form variable? or a column ?
because thats what you get here. But i guess you want to ahve the titleText of the SolutionModel JSForm object?
solutionModel.getForm(event.getFormName()).titleText
You get the RuntimeForm not the JSForm from the solution model if you use forms[xxxx]