• Resolved pomegranates

    (@pomagaj)


    Forminator is amazing but sadly there is no option to save unsubmitted form data. Someone from WPMU team has written a script to store such data in cookies but this script is no longer working. It seems something has changed with one of the Forminator updates and the code is no longer valid.

    I’m talking about this code: https://gist.github.com/wpmudev-sls/9917696b87543e3edb92e84f41933be0

    Maybe you could give a hint on what could be wrong with it..? That would be greatly appreciated.

    Thank you for your hard work on this plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @pomagaj,

    I’m checking with our developer to see if there is any workaround that could be looked at regarding this. Will keep you posted once we get further feedback asap.

    Kind Regards,
    Nithin

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @pomagaj

    Our developers tested the code and it worked.

    Can you double check if you modified the line:

    $allowed_form_ids = array( 6, 12, 345, 6434 );

    Adding your custom form ID, also,

    By default, it stores only when clicking on the “Next” or “Previous” button on forms with pagination. You can change this line :

    $store_trigger = 'button'; // OR 'focusout'

    to

    $store_trigger = 'focusout'; // OR 'focusout'

    So it stores the values when a field has a change in focus.

    In case it still not working, please share your Form https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export using Google drive and we can take a look.

    Best Regards
    Patrick Freitas

    Thread Starter pomegranates

    (@pomagaj)

    Patrick and the team – thank you for the help!

    It indeed works. The problem was somehow connected to Oxygen Builder. I just pasted script code to Code Block and that way it works.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Store form data in cookie?’ is closed to new replies.