After latest update my forms not loading
-
Hey, used your plugin for a while. After latest update have this error –
check error again – ${!u&&”\n\t\t\t\t\t\t\t.pictureChoice__optionKey, .multipleChoice__optionKey {\n\t\t\t\t\t\t\t\tdisplay: none !important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t”}),onClick:()=>{y(!0)}},s?.logo?.src&&(0,Ge.createElement)("div",{className:"renderer-core-form-brand-logo"},(0,Ge.createElement)("img",{src:s.logo.src,alt:""})),r.length>0&&(0,Ge.createElement)(Ke.Fragment,null,w&&(0,Ge.createElement)(_t,null),!S&&(0,Ge.createElement)(eo,{isActive:!w&&!k,applyLogic:e}),k&&(0,Ge.createElement)(Tt,null)),!S&&(0,Ge.createElement)(so,null),!!S&&(0,Ge.createElement)(ho,{data:S})))},vo=({applyLogic:e})=>{const[t,r]=(0,Ke.useState)(!1),n=ot(!0),{currentBlockId:a,blockTypes:s}=(0,i.useSelect)((e=>({currentBlockId:e("quillForms/renderer-core").getCurrentBlockId(),blockTypes:e("quillForms/blocks").getBlockTypes()}))),l=nt(),{isPreview:c,formObj:{hiddenFields:u,initialData:d},formId:p}=rt(),{setSwiper:f,insertEmptyFieldAnswer:m,goToBlock:h,setPaymentData:g,setAnswers:v,setFieldAnswer:y}=(0,i.useDispatch)("quillForms/renderer-core"),b=e=>e.replace(/{{hidden_field:([a-zA-Z0-9-_]+)}}/g,((e,t)=>(0,o.size)(u)>0&&u?.[t]?u[t]:""));return(0,Ke.useEffect)((()=>{if(!c){n.forEach((e=>{if(e?.attributes?.defaultValue||0==e?.attributes?.defaultValue){const t=s[e.name];y(e.id,t?.supports?.numeric?t?.getNumericVal(b((0,tt.removep)(e.attributes.defaultValue))):b((0,tt.removep)(e.attributes.defaultValue)))}else m(e.id,e.name)}));const t=(0,o.map)((0,o.cloneDeep)(l).filter((e=>"welcome-screen"===e.name)),(e=>(0,o.omit)(e,["name"]))),i=(0,o.map)((0,o.cloneDeep)(l).filter((e=>"thankyou-screen"===e.name)),(e=>(0,o.omit)(e,["name"])));f({walkPath:(0,o.cloneDeep)(l.filter((e=>"thankyou-screen"!==e.name&&"welcome-screen"!==e.name))),welcomeScreens:0===(0,o.size)(t)?[]:t,thankyouScreens:0===(0,o.size)(i)?[]:i}),e||c||a&&h(a,!0),r(!0)}}),[JSON.stringify(l)]),(0,Ke.useEffect)((()=>{if(t){const e=l&&l[0]?l[0]:void 0,t="undefined"!=typeof window?new URLSearchParams(window.location.search):void 0,r="payment"===t?.get("step");let i=!1;r&&(0,Ze.doAction)("QuillForms.RendererCore.PaymentStep",t,(()=>{var e,r;i=!0,h(null!==(e=null!==(r=window?.pending_submission?.thankyou_screen_id)&&void 0!==r?r:t.get("thankyou_screen_id"))&&void 0!==e?e:"default_thankyou_screen")}),(()=>{g(window?.pending_submission)})),i||(n.forEach((e=>{d.answers[e.id]&&y(e.id,d.answers[e.id].value)})),v(d?.answers),setTimeout((()=>{d?.currentBlockId?h(d.currentBlockId):e?.id&&h(e.id)}),100))}}),[t]),(0,Ge.createElement)(go,{applyLogic:e})},yo=({formObj:e,formId:t,onSubmit:r,applyLogic:n=!1,beforeGoingNext:i,isPreview:a=!1,customFonts:s})=>{const[l,c]=(0,Ke.useState)("");return(0,Ke.useEffect)((()=>{function e(){window.innerWidth<600?c("mobile"):c("desktop")}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),(0,Ke.useEffect)((()=>{a||(0,Ze.doAction)("QuillForms.RendererCore.Loaded")}),[]),(0,Ge.createElement)(et,{value:{formObj:(()=>{a||(e.blocks=(0,Xe.sanitizeBlocks)(e.blocks)),e.messages={...(0,Qe.getDefaultMessages)(),...e.messages};const t="undefined"!=typeof window?new URLSearchParams(window?.location?.search?.substring(1)):"";return e.settings||(e.settings={}),e.settings={disableProgressBar:!1,disableWheelSwiping:!1,disableNavigationArrows:!1,animationDirection:"vertical",showQuestionsNumbers:!0,showLettersOnAnswers:!0,saveAnswersInBrowser:!1,displayBranding:!1,disableAstreisksOnRequiredFields:!1,...e.settings},e.correctIncorrectQuiz={enabled:!1,questions:{},showAnswersDuringQuiz:!0,...e.correctIncorrectQuiz},e.blocks=(0,o.map)(e.blocks,(e=>{var t;return"multiple-choice"!==e.name&&"dropdown"!==e.name&&"picture-choice"!==e.name||!e?.attributes?.randomize||a?e:{...e,attributes:{...e.attributes,choices:(0,o.shuffle)(null!==(t=e?.attributes?.choices)&&void 0!==t?t:[])}}})),(0,o.size)(t)>0&&t?.get("quillforms-shortcode")&&(e.settings.disableWheelSwiping=!0),e})(),onSubmit:r,isPreview:a,formId:t,beforeGoingNext:i,deviceWidth:l,customFonts:s}},(0,Ge.createElement)(vo,{applyLogic:n}))}})(),(window.qf=window.qf||{}).rendererCore=n})();
The page I need help with: [log in to see the link]
- The topic ‘After latest update my forms not loading’ is closed to new replies.