Script: object TFField

Viewing 5 reply threads
  • Author
    Posts
  • February 1, 2019 at 4:22 PM #33607

    Please can you tell me the tffield’s struct?

    Thanks
    Gianantonio

    February 2, 2019 at 2:01 PM #33617

    Brendan
    Keymaster

    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

    February 2, 2019 at 5:43 PM #33627

    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

    February 2, 2019 at 5:43 PM #33628

    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

    February 2, 2019 at 8:00 PM #33633

    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?

    February 2, 2019 at 8:20 PM #33637

    Brendan
    Keymaster

    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.

Viewing 5 reply threads

You must be logged in to reply to this topic.