Custom enum field dependencies
I'm trying to create two custom fields “Client Name” and “Client ID”. Client Name is an enum with client01 and client02. I want “Client ID” to present a different drop down list depending on what is in “Client Name”. If Client Name is client01 then Client ID should show CL-001 and CL-002. If Client Name is client02 then Client ID should show AA-001 and AA-002. Is this possible? If so, how can I achieve this?
Please sign in to leave a comment.
Hi Sgriggs,
There's no support for conditional field values yet, though this idea is registered in our tracker: https://youtrack.jetbrains.com/issue/JT-47032/Conditional-values-of-a-field. For now, please use an individual field for each client (i.e. fields “Client 01 ID” and “Client 02 ID”).
If the number of clients is too large for this approach, you can put all the client IDs in the same “Client ID” field, but show an error message when an incorrect client ID is selected. You can do this with a custom workflow that'll prohibit saving changes with incorrect input (e.g. when CL-002 is chosen for client02).