jQuery.Deferred exception: $(...).dialog is not a function TypeError: $(...).dialog is not a function at Object.showSummarizedText

  • Updated

Issue:

Unable to submit the Opti Forms, after checking the console log, it's shown as below:

jQuery.Deferred exception: $(...).dialog is not a function TypeError: $(...).dialog is not a function
at Object.showSummarizedText (http://localhost:50560/util/EPiServer.Forms.Samples/ClientResources/ViewMode/EPiServerFormsSamples.js:262:78)
at http://localhost:50560/WebResource.axd?d=TzRGlCddaaqtz0Im2nSJhIBeT9yvGw6TI4E1pEW-rmmfxkH2GyE_Eb6nXwy53xVsaHTIgb2EhiDo6iQtI1FQzj4h-DsOWkbZRL1G78JQ0Np9USRxVnWwqUrpLotKpwoLCOPV8OmU3WelFdAMY7QLBkIZ2cvugIacPign20VaPKo1&t=638333355760000000:1:20923
at http://localhost:50560/WebResource.axd?d=TzRGlCddaaqtz0Im2nSJhIBeT9yvGw6TI4E1pEW-rmmfxkH2GyE_Eb6nXwy53xVsaHTIgb2EhiDo6iQtI1FQzj4h-DsOWkbZRL1G78JQ0Np9USRxVnWwqUrpLotKpwoLCOPV8OmU3WelFdAMY7QLBkIZ2cvugIacPign20VaPKo1&t=638333355760000000:1:21028
at e (http://localhost:50560/WebResource.axd?d=JPojowp_K0840Fqo_p-O-VLcO8Lj_3xBr3sWyIXEGd6BF1QFK7nLCQWAHKKjtBMA66P8NbBOuLT20viJILtaUBlnQRruY9_R4pBOPtjEWgeXaRp8fb2URmW41xHdQWz7FNX72UM5-wAqIz7t99IzyzpUD_-g4VyZ58tvYW0Qnss1&t=638333355760000000:2:30005)
at t (http://localhost:50560/WebResource.axd?d=JPojowp_K0840Fqo_p-O-VLcO8Lj_3xBr3sWyIXEGd6BF1QFK7nLCQWAHKKjtBMA66P8NbBOuLT20viJILtaUBlnQRruY9_R4pBOPtjEWgeXaRp8fb2URmW41xHdQWz7FNX72UM5-wAqIz7t99IzyzpUD_-g4VyZ58tvYW0Qnss1&t=638333355760000000:2:30307) u

 

Reason:

The issue happens after installing the Episerver.Forms.Sample 3.7.1. In this version, the jquery-ui has been updated to the 1.13.1, this might conflicts to the $(...)dialog function. And the issue happens when the "Show a summary confirmation message after submission" option is checked.

 

Solution:

Option 1: Uncheck the "Show a summary confirmation message after submission" of the form.

Option 2: Open the EpiserverFormsSamples.js under \modules_protected\EPiServer.Forms.Samples\3.7.1\ClientResources\ViewMode\ and comment out the showSummarizedText function as image below: