Please can you tell me the tffield’s struct?
Thanks
Gianantonio
Hi Gianantonio,
Right now the only things exposed are the name, fieldType, and fieldDescription properties.
I updated the JavaScript API to document the new APIs I added:
https://www.tapforms.com/help-mac/5.3/en/topic/javascript-api
Thanks.
Can you add a property field_id?
For make indipendent scripts From Forms, and indipendent by database, i need a function like this:
Form.getfieldid(‘name Of field’);
And return the field_id ‘fld…’ without open snippets.
Gianantonio
Thanks.
Can you add a property field_id?
For make indipendent scripts From Forms, and indipendent by database, i need a function like this:
Form.getfieldid(‘name Of field’);
And return the field_id ‘fld…’ without open snippets.
Gianantonio
This script:
var t = form.getFieldNamed(‘P1’);
console.log(t.name);
console.log(t.fieldType);
console.log(t.fieldDescription);
console.log(‘eoj’);
This is the console panel
undefined
undefined
undefined
eoj
In the Form there is a P1 field.
What’s wrong?
Hmm… you’re right. The properties aren’t working right.
I just looked into it and it seems I forgot one small configuration setting on my TFField object. I’ve just fixed it. It will be in the next update.
Sorry for the delay in getting this out.