Avatar

Correct answer by
Level 10

Hi,

You can add a function to a script object that returns your "Field" object, with the hideField method. So a function like;

function Field(field)

{

    var that = { "field": field };

    that.hideField = function()

    {

        this.field.presence = "hidden";

    }

    return that;  

}

Could be called by

LcdObjects.Field(TextField1).hideField();

Regards

Bruce

View solution in original post