Download & Extend

Fields depending on another field issue

Project:Webform
Version:6.x-3.18
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hello. So I'm really not sure if this is a "bug" per se, so forgive me if this was the intended functionality. I am having an issue though where I have certain fields that are dependent on the selection of another field. I have a registration form and one of the questions is "Are you bringing a guest?". If they select "Yes", then certain fields drop down pertaining to their guest. Oh and this is a multi step form so other guest fields continue on other pages depending if they clicked yes. SO, this is working fine and they can submit the form and everything works great. The problem is that now, if they go in and edit their form which they are allowed to do and now decide to go solo, and click "No" I am not bringing a guest, all the guest fields disappear as expected, but the data is still there behind the scenes and in the database. So when we run custom reports on specific guest data, they are thrown off because there is still orphaned guest data for people who are NOT bringing guests.

Again, I don't know if this is a bug or more of a safety net of not wanting to delete data, but is there an easy way for me to make sure if they click No, that then all dependent guest field values will now be deleted or null?

THANK YOU FOR SUCH AN AWESOME MODULE

Comments

#1

Title:Fields depending on other fields issue» Fields depending on another field issue

#2

UPDATE: Sorry it turns out I need to clarify something. After running some more tests, it looks like the data from the dependent fields actually DO get deleted, but ONLY if they are on the same page. So in other words if they click a radio button to drop down some additional fields and fill them out and submit the form then come back and edit and click the radio button to hide those fields, the data will get deleted. The problem is if there is a component on a different page of the multi step form. I have two fields on a different page which are multi select checkboxes that only show up if they click that radio button that is two screens before them. Those fields do not get deleted if they edit the form and change their mind. even though they are set not to show up, the data that is already in the database will remain.

nobody click here