How to display drop down in auth custom node for example Data type dropdown

This topic has 1 reply, 2 voices, and was last updated 1 week, 5 days ago by Jatinder Singh.

  • Author
    Posts
  • #27943
     jeyasree
    Participant

    How to display drop down in custom node for example Data type dropdown contains Text,Number,Email,Phone number…

    • This topic was modified 1 week, 5 days ago by jeyasree.
    #27945
     Jatinder Singh
    Participant

    You can try the following snippet in your custom node:

    public interface Config {
            @Attribute(order = 100,  validators = {RequiredValueValidator.class} )
            default DataType dataType() { return DataType.Text; }
     }
    
     public enum DataType {
       Text,
       Number,
       Email,
       PhoneNumber
     }
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

©2020 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?