StevenWhatmough
StevenWhatmough

Reputation: 3

I am using conditional statements to hide and show items in formIO. How can I get this to work with surveys?

For example Survey

How do I get a text field (API name: textName) to appear using the advanced conditional logic? I presume I will need something like this in the text field advanced conditions;

show = (survey.question = starter) && (survey.value = good)

Any help on how I can write this would be amazing! Thanks

P.S Very much new to coding/formIO!

I have tried using the values assigned to each question and value.

Upvotes: 0

Views: 409

Answers (1)

Sudheer Reddy
Sudheer Reddy

Reputation: 226

Update the conditional show logic like this:

show = data.survey && data.survey.starter === 'good';

Upvotes: 0

Related Questions