OpenIDM 4.0 : Display attribute(s) as a dropdown or checkbox

This topic contains 4 replies, has 5 voices, and was last updated by  jamesanderson333 4 months ago.

  • Author
    Posts
  • #12562
     raviss 
    Participant

    Hi,

    I have a requirement to add certain custom attributes to the managed user object which can be displayed as a dropdown list and multi-select checkbox in the “New User Registration” and “Edit User Profile” Page by an Administrator.

    How do I specify the attributes to be displayed as dropdown list and multi select checkbox items in OpenIDM 4.0.

    OpenIDM 3.1.0 had this capability e.g. “Roles” was a multi select attribute having values “Administrator”, “Task Manager” and “User”. Also the “Country” and “State/Province” attributes were a drop down list.

    A couple of examples are explained below as to what I want to achieve.

    Example 1 : Attribute “Title” will have possible values as “Mr.”, “Miss.”, “Mrs.”, “Dr.”. Title will be a drop down list in the user registration page. Administrator will select one of the options from the dropdown list and it will be stored as an attribute value

    Example 2 : Attribute “Documentation Verified” will have possible values as “Passport”, “Driving Licence”, “Utility Bill”, “Bank Statement”. Administrator will have the option to select multiple options in the checkbox provided in the UI.

    Kindly advise.

    Regards

    Ravindra S

    #12771
     sahoob 
    Participant

    Hi,

    We have same requirement, but unable to find any document related to this. If anyone have the details please could you help on this.

    Regards,
    Biswajit

    #19052
     hahmadi 
    Participant

    Very old topic. But in case someone has same question using newer OpenIDM versions …

    Since OpenIDM UI adopted jdorn/json-editor (https://github.com/jdorn/json-editor), different formats supported by that library can be used. You can update your managed.json file for the attribute to look like below.

    {
    ….
    “enum”: [“myva1″,”myval2″,”myval2”],
    “format”: “select”,
    “type” : “string”
    }

    #21441
     raju.laghumarapu 
    Participant

    1. was there any other configurations to enable to make below code works in openidm5.5 version?
    {
    ….
    “enum”: [“myva1″,”myval2″,”myval2”],
    “format”: “select”,
    “type” : “string”
    }

    2. was there any restrictions while using evaluation version say dat enum/drop down doesn’t support?

    #25088
     jamesanderson333 
    Participant

    “employeetype” : {
    “title” : “Employee Type”,
    “type” : [
    “string”,
    “null”
    ],
    “viewable” : true,
    “searchable” : true,
    “userEditable” : false,
    “description” : null,
    “minLength” : null,
    “policies” : [ ],
    “enum” : [
    “Internal”,
    “External”
    ],
    “options” : {
    “enum_titles” : [
    “Internal”,
    “External”
    ]
    },
    “isVirtual” : false
    },

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

©2019 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?