Symantec Identity Management

Expand all | Collapse all

Identity Portal API Context visibility - how it works

Jump to Best Answer
  • 1.  Identity Portal API Context visibility - how it works

    Posted 07-19-2018 05:28 AM

    Hi,

     

    the manual for API Context says:

    api.getProp("<prop reference name>")
    Fetches another prop in the form using the reference Name assigned to it under the prop configuration. By fetching another prop we can control its value, available options, label, visibility, and so on.

     

    Very explicative and lot of examples, "and so on", very good documentation! Anyway, I don't understand how to use this "visibility" attribute.

     

    I tried many ways:

     

    var department = api.getProp("department");

    if (company === "EXT") {

        department.visibility = 'none';
    }

     

    Also tried:

        department.visibility = 'hidden';

        department.visibility = 'false';

     

    and:

        department.visible = false;

        department.visible = 'false';

     

    No way, the Department field is always there!

     

    Anybody knows how to use this visibility property?

     

    Thanks,

    Massimo.



  • 2.  Re: Identity Portal API Context visibility - how it works
    Best Answer

    Posted 07-19-2018 05:40 AM

    Found it.

     

    department.hidden = true;