Join us Dec. 16 for The Community Hour, our first global virtual User Group event!

choices hide

kotab
Tera Contributor
i have variable name "role" select box type  :
primary below three options 

1 Administrator
2 Standard User
3 User Administrator
if user select "Administrator" i want to show :
    Security Group - General
    Security Group - Employment
    Security Group - General Counsel
remaining need to be hide 
if user select "Standard User"  i want to show :
    Security Group - General
    Security Group - Employment
    Security Group - General Counsel
remaining all need to be hide 
if user select " User Administrator " i want to show :
    Security Group - Ascent User Administrator
remaining all need to hide 



 

3 REPLIES 3

AshishKM
Kilo Patron

Hi @kotab , 

This can be done via Choice [ sys_chocie ] where role values are dependent value for security group.

 

Create 3 record for roles and  7 record for security group in Chocie table [sys_choice ] with dependent role value, this will a simple implementation and easy to maintain for addition/updatation. You can use these record via lookup select box type variable. [ here you dont need to write onChange client script ]

 

Otherway, you can write onChange client script on role and apply condition on role value ( using If or switch/case ] add the security group at run time, every time onChange trigger, first clear the security select box then add values.

 

-Thanks,

AshishKM

BrianProvencher
Tera Guru

Is this on a Catalog Item? If so, you can restrict the visible aspect of these choices using a Catalog UI Policy. If it is on a form view, you can use dependent fields.