I apreciate If someone can help , I have detected that when you have fields in your form, created or received from CC list
you can locate in JavaScript without problems
a=$('field1')
b=$('model[field1]');
but when I read DB fields with model, for example "dbdata" i can see these arrays using debugging form tool and use them with PHP but not with JavaScript
PHP(ok)
$a=$form->data['dbdata']['field1'];
JS(fail)
a=$('dbdata[field1]'); always return null(?)😲
Is it posible pass variables from php enviroment to JavaScript enviroment, to use them?
you can locate in JavaScript without problems
a=$('field1')
b=$('model[field1]');
but when I read DB fields with model, for example "dbdata" i can see these arrays using debugging form tool and use them with PHP but not with JavaScript
PHP(ok)
$a=$form->data['dbdata']['field1'];
JS(fail)
a=$('dbdata[field1]'); always return null(?)😲
Is it posible pass variables from php enviroment to JavaScript enviroment, to use them?