Using global variable as dataprovider does not work

Hi,
I use solutionModel to create a form. A field of this form takes a global variable as data provider with default value. But when this form was loaded that field has no any value in it.

globals.testName = '30';
var field = jsform.newTextField(globals.testName,51,1,100,22);

Why this doesn’t work in the form created by solutionModel?

What type is your global?

It’s TEXT. In the globals.js:

var testName = '';

Happy Tigger,

The data provider id is the name string, your code used the current value:```
var field = jsform.newTextField(‘globals.testName’,51,1,100,22);

Rob

Oops, sorry I misunderstood that.

Thanks,