Hi!

I think a useful add-on for this module would be the ability of resetting the value of controlled fields, when they are set invisible.

The problem I see with the current behaviour is:

Field1 controls Field2
1. The user selects a value for field 1
2. The user is then presented with field2 and chooses an alternative
3. The user selects another value for field 1 (changed his mind, bloody user!) :)
4. The controlled field (field2) is now invisible, but the value is still selected and gets submitted to database...

If the module would be able to reset the value when setting the controlled field as invisible, the problem would be fixed.

What do you think?

Comments

vermario’s picture

I was wondering... maybe selecting the option of "disabling" the controlled field would fix this? If I remember correctly, disabled fields are not saved to the database.

peterpoe’s picture

Status: Active » Closed (duplicate)