Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I have three fields on an entityform the third is hidden unless the second one is answered with yes.

The problem I have is that if a user makes three visible by answering "yes" and then answers three but then decided to change question 2 to "no" field 3 is hidden but the answer is still recorded.

share|improve this question
 
And why exactly would that be a problem? That way if user switches from yes to no, and few days later from no to yes, he does not need to re-type answer to 3rd question, right? Sounds good to me. –  Mołot Aug 22 at 11:18
 
I've changed the wording, it may make more sense. The problem is if the user changes their mind on question 2 at the time of submission –  Daniel Harper Aug 22 at 11:48

1 Answer

Adding another dependency with field 3 - emptied when question 2 is no should most likely fix your problem

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.