• Resolved mbsharp

    (@mbsharp)


    Using CF7 and CF7-conditional-fields.
    After displaying a CF7 form with conditional fields, and then navigating away, I always get a warning that changes may not be saved. This happens whether or I have made any changes and whether or not I made changes and saved.
    This does not happen on another site using CF7 only, so I am guessing the warning is coming from CF7-conditional-fields.
    It would seem that the warning is spurious as there is no issue using the resulting form.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mbsharp

    (@mbsharp)

    PS. To be clear the warning message is in the backend editor and not in operational use.

    Plugin Author Jules Colle

    (@jules-colle)

    Could you check if the issue appears when you install conditional fields on your other website?

    Thread Starter mbsharp

    (@mbsharp)

    Thank you for responding.
    On the affected site I have two forms both using the same conditional fields settings. One group field is displayed if a particular string is typed in an earlier field. The particular string may be any of 15 possibilities so there are 15 rows in the conditions.
    I added conditional-fields to my other site and created a new CF7 form with one group field to be displayed if one possible string is typed in an earlier field.
    The Unsaved Warning now appears on this other site after adding conditional-fields.
    The warning appears even if you just open a form for editing and do nothing before navigating away elsewhere within the dashboard.
    Operationally this warning can be ignored as it has no effect on the use of the forms. It is just that presumably some flag is not being set correctly when the CF7 form is saved.

    Plugin Author Jules Colle

    (@jules-colle)

    I have checked this several times and added some tests, and verified that this is not happening on a clean wordpress installation with both the latest versions of CF7 and Conditional Fields installed.

    Could you explain to me exactly the steps I can take to reproduce this?

    Thread Starter mbsharp

    (@mbsharp)

    That’s odd. As noted the fault appeared as soon as I added the Conditional Fields plugin to a site which had not used it before. It may be an interaction with another plugin. But, as the warning is irrelevant and can be ignored I will just live with it.
    Regards

    Plugin Author Jules Colle

    (@jules-colle)

    Figured out when this happens. Under normal circumstances this error should not appear. However, if you have a conditional rule that is referencing a non-existent group, the warning will appear.

    Steps to reproduce:
    1. Create a new form with at least one group
    2. Save form
    3. Go to the Conditional fields tab
    4. Create a condition for this group to appear
    5. Save form
    6. change the name of the group in the form
    7. Save form
    8. Save form again. The warning should now appear

    Temporary fix:
    1. Go to the Conditional fields tab
    2. Remove the conditions with a blank group field.
    3. Save form. The warning should not appear anymore.

    • This reply was modified 3 years, 10 months ago by Jules Colle.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Warning: Unsaved changes’ is closed to new replies.