Conditional fields for profile fields


(Ruth Cheesley) #1

Sometimes if a member of a community answers a specific question on their profile, you may wish to show or hide other fields based on the answer.

A use case might be ‘do you have any qualifications’ and if they answer ‘Yes’ then you might show additional fields where these could be entered. There are a lot of potential use cases for this, I feel.

Presently all fields showing can result in a pretty bloated profile edit screen, when some questions may not be appropriate based on previous answers, but the user still has to wade through them - which is a poor user experience & waste of brain cycles!

As a rough ‘how this might work’ I’d maybe expect to have some way of linking the answer to a dropdown question to another field and denoting that it is a conditional field.

So, for example in the case above, next to the ‘Yes’ option (or somewhere on the linked question where you select the outcome from a previous question), have some way of choosing which fields depend on that yes answer and hence show on the user editing interface when ‘Yes’ is selected. Ditto for the ‘no’ answer.

It could be a ‘select fields to show’ and ‘select fields to hide’ would work.


(Jeff Atwood) #2

If you are doing a lot of complex, conditional surveying of members, perhaps an external survey service might be more appropriate for that aspect?


(Ruth Cheesley) #3

In my case, it’s pretty simple. One field, based on a yes answer, show two additional fields. How would you suggest using an external survey service would work with a user profile completion on Discourse?