Support » Plugin: Contact Form 7 Multi-Step Forms » Mixing context between pages

  • Hello, I’m sorry, but one very serious issue more.

    On my website I have a number of similar pages with the same or similar forms (for book different courses). All these forms are 2-steps forms with the same seconds step.

    It works perfect until someone pass all the way up to submitting on the last step. If on the second step someone doesn’t finalize the way pressing “submit” but load another page (another course) instead, it loads and fills the data from the previous page (course) and second step gets the data from the previous page (course), instead of to get it from current.

    Using term “page” I mean only the pages that have the first step form.

    It’s look like that you don’t clear cookies. I tried to clean them manually and it start to work.

    Cache is off on website currently.

    You can see this issue, for example, using https://forcesail.ru/seminars/berth-seminar/ as page #1 and https://forcesail.ru/seminars/sails/ as page #2. You will see that on step #2 on page #2 the name of the course will come from page #1.

    Many thanks is advance for you usual style of fixing issues promptly.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author webheadcoder

    (@webheadllc)

    If I understand you correctly, you want the cookies to be cleared when a visitor visits page #1? This actually would not be helpful for someone who might want to go back from page #2 and view/change their submission on page #1.

    Thread Starter Alexander Guskov

    (@forcesail)

    No, it’s not exactly that I mind.
    I think it would better to say that I would be happy it cookies used for the same page only and when user goes to another page would cleaned.

    I’ll try to explain by another way:
    Let, you have two two-steps forms:
    1) Page1 (FormA) -> PageZ (FormZ)
    2) Page2 (FormA) -> PageZ (FormZ)

    The normal scenario is to go and submit Page1 (FormA) and then submit PageZ (FormZ) and just after that to go to Page2 (FormA).
    But if user go and submit Page1 (FormA) and then instead of submiting PageZ (FormZ) he breaks the normal scenario and go to Page2 (FormA) he gets filled in form with the data from the previos page, including hidden fields. Moreover, all params that had been passed by Page2 to the FormA rewrote to the data from Page1.

    Now you save kit of data of the form in cookies like there is only one form on website or it’s imposible to open 2 windows with 2 different pages with the same (or similar) form or to reload another page with the same form.

    Plugin Author webheadcoder

    (@webheadllc)

    I see. I’ve been meaning to modify the code to handle multiple forms at the same time, but haven’t gotten around to it. I have a few features lined up that would make more sense if I reorganize the entire cookie structure. So that’s causing me to keep pushing it off as it’s a big update.

    Thank you for explaining your scenario for me. Unfortunately this isn’t something that will be available in the near future.

    Thread Starter Alexander Guskov

    (@forcesail)

    The situation even worth that I described it above. For example:
    one have 4 different forms of 4 different pages, arranged into 2 chains (multisteps):
    1) Page1 (FormA) -> PageZ (FormZ)
    2) Page2 (FormB) -> PageY (FormY)
    If FormB have the same fields (with the same names (almost always)) like in Form A then user get the same mess.
    By another words, if there are 2 o more multisteps forms on a website it will mix the context every time when user open another form without completing all steps from a previous one.

    In this case, as a temporary solution, I suppose it’s less harm to clean cookies straight after loading them on a next step. I understand that the most of user want to have data saved going up and down by the steps of the form but to have form filled by the wrong data without having ability to correct it is worth.

    Plugin Author webheadcoder

    (@webheadllc)

    The best temporary workaround would be to rename the fields to be different from their counterparts. That way the user can jump back to the previous forms if they want to and will still have their information set.

    Another benefit of this is that you can have fields with the same meaning with the same name. For example name, phone, address, etc., can be named the same so that if the user jumps to a different course that info is already filled. Fields you don’t want auto-filled from other courses can be renamed so they don’t auto-fill.

    Thread Starter Alexander Guskov

    (@forcesail)

    I’m afraid it won’t help to workaround when the same form used in different pages. As well it’s affect all sites that use the plugin.
    Behavior of users to just to another page without submitting the previous one or to open a few pages at the same time is very common.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.