Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dibsh

    (@dibsh)

    Or for those a bit wary – open the file mentioned in the above post – find line 3462 and find the following block of code:

            go_to: function(t, e) {
                if (this.step = t, t === this.totalSteps) return !1;
                this.$el.find(".forminator-pagination").css({
                    //height: "0",
    				height: "auto",
                    opacity: "0",
                    visibility: "hidden"
                }).attr("aria-hidden", "true"), this.$el.find("[data-step=" + t + "]").css({
                    height: "auto",
                    opacity: "1",
                    visibility: "visible"
                }).removeAttr("aria-hidden");
                var r = this.$el.data("forminatorFront");
                void 0 !== r && r.responsive_captcha(), this.update_navigation(), e && this.scroll_to_top_form()
            },
            update_navigation: function() {
                this.$el.find(".forminator-current").removeClass("forminator-current"), this.$el.find(".forminator-step-" + this.step).addClass("forminator-current"), this.calculate_bar_percentage()
            },

    I’ve included a few extra lines of code from the file – so you know the exact block\area you need to be in. Then replace it entirely with

            go_to: function(t, e) {
                if (this.step = t, t === this.totalSteps) return !1;
                this.$el.find(".forminator-pagination").css({
                    //height: "0",
    				height: "auto",
                    opacity: "0",
                    //visibility: "hidden"
    				display: "none"
                }).attr("aria-hidden", "true"), this.$el.find("[data-step=" + t + "]").css({
                    height: "auto",
                    opacity: "1",
                    //visibility: "visible"
    				display: "block"
                }).removeAttr("aria-hidden");
                var r = this.$el.data("forminatorFront");
                void 0 !== r && r.responsive_captcha(), this.update_navigation(), e && this.scroll_to_top_form()
            },
            update_navigation: function() {
                this.$el.find(".forminator-current").removeClass("forminator-current"), this.$el.find(".forminator-step-" + this.step).addClass("forminator-current"), this.calculate_bar_percentage()
            },

    There should be no issue with double quotes etc.

    HIH

    Dibs

    Thread Starter dibsh

    (@dibsh)

    I just realised during my original post the cut & paste – the double quotes went weird. For anyone wanting a workaround – open up the file

    \wp-content\plugins\forminator\build\front\front.multi.min.js

    in your public_html folder in a text editor – I use Notepad++ – and find line 3462 (or thereabouts) it will start as follows;

    go_to: function(t, e) {

    What follows is basically is 2 conditional blocks of code.

    In the 1st block find

    visibility: "hidden"

    and comment it out & add a new line so it looks like:

                    //visibility: "hidden"
    		display: "none"

    Then about 4-5 lines down in the 2nd block find

    visibility: "visible"

    comment it out and add a new line below so it looks like

                    //visibility: "visible"
    		display: "block"

    I’d suggest create your form first – confirm that additional page breaks are adding white space below your form and then do the above workaround\fix.

    I’m not sure what it would do to a form that has no page breaks – but if you don’t have any page breaks – then you shouldn’t really have any need for the above.

    HIH

    Dibs

    • This reply was modified 5 years, 10 months ago by dibsh.
Viewing 2 replies - 1 through 2 (of 2 total)