Using option set to convert to appropriate value

In a text element that is only visible when a code exists, I want to display the appropriate name according to a given code. Currently, I have an option set that corresponds every code with its specific name, a custom workflow that returns the appropriate name according to the code that is inputted, and I created a custom state for the text element which I refer to when I display the name in the text element. I was thinking that when a condition that makes the text element visible is true, I need to trigger a workflow that sets the state of the text element to the appropriate name, which I can then refer to in the text element. Another issue I have is that I cant directly refer to the condition where the code exists within the workflows. Is there a better way to go about this?

So a code is entered by a user and you want to retrieve the option set value that has the code as an attribute?

Get option all values filtered this options code attribute is equal to given code

No the code is an attribute of one of my data types. So I need to check the data types code with the codes in the option set.

Okay, so search for data type and constrain by code

This topic was automatically closed after 70 days. New replies are no longer allowed.