I was wondering how I can make a field mandatory based on the text within a different field | Community
Skip to main content
New Participant
May 19, 2020 4:55 PM UTC
Question

I was wondering how I can make a field mandatory based on the text within a different field

No text available
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Level 10
May 20, 2020 12:13 PM UTC

We use Christina's trick quite a bit. You can even make the answer to any "hidden" fields mandatory; they will only be mandatory when displaying to the user. For example:

QUESTION 1 choices:

• Blue

• Green

Question 1A is currently hidden, but is also mandatory, but only if displayed when Question 1's answer is "Blue." If the answer is "Green" then Question 1A will not display, and since it isn't showing, it being marked mandatory is ignored by WF.

Very handy.

Translate
RandyRoberts
New Participant
May 20, 2020 3:19 PM UTC

One caveat, API calls ignore display logic. So if you're planning on any kind of integration, be aware of that. This also includes required field status.

Translate
Christina_Jarosz
Level 9
May 19, 2020 7:03 PM UTC

Hey @Cheryl Wen‚ - we don't have logic-based selection in Workfront - sure would make it easier! What you can do is take advantage of the display/skip logic.

So, if Question A is answered Blue, then Question A1 would then display as something the user would be required to complete. Likewise, if Question A was answered Red, the user would 'skip' to Question B.

Translate