Error on multi-step form with reCaptcha

Found in

EPiServer.Forms 4.4.4

Fixed in

EPiServer.Forms.Samples 3.3.1

Created

Apr 11, 2017

Updated

Jul 03, 2017

Area

Core

State

Closed, Fixed and tested


Description

Steps to reproduce

1. Create a multi-step form with these elements:
_Form Step1, element1
_Form Step2, reCaptcha (configured), element.
2. Add the form to a page then publish.
3. Open the page.
4. Enter data then click Next step.
5. Click the Previous step button.
Error script:

Uncaught TypeError: Cannot read property 'find' of undefined
    at Object.bindCustomElementValue (WebResource.axd?d=TzRGlCddaaqtz0Im2nSJhKezV-k_XE95ERR8OazehSKn1GjQYB8GA1hz2rx36p-GHTR5_W_6qmCwK4SkO…:1)
    at Object.bindCustomElementValue (EPiServerFormsSamples.js:406)
    at String.<anonymous> (WebResource.axd?d=TzRGlCddaaqtz0Im2nSJhKezV-k_XE95ERR8OazehSKn1GjQYB8GA1hz2rx36p-GHTR5_W_6qmCwK4SkO…:1)
    at Function.each (WebResource.axd?d=rQapnFTl_pgMjn3yGS-nPjPJHMBPhfpXzwM2FiWI1Aa7gNfWAx0PQEjD0ujArN09kh95WKS_2wFkw_49R…:2)
    at et (WebResource.axd?d=TzRGlCddaaqtz0Im2nSJhKezV-k_XE95ERR8OazehSKn1GjQYB8GA1hz2rx36p-GHTR5_W_6qmCwK4SkO…:1)
    at o (WebResource.axd?d=TzRGlCddaaqtz0Im2nSJhKezV-k_XE95ERR8OazehSKn1GjQYB8GA1hz2rx36p-GHTR5_W_6qmCwK4SkO…:1)
    at HTMLButtonElement.<anonymous> (WebResource.axd?d=TzRGlCddaaqtz0Im2nSJhKezV-k_XE95ERR8OazehSKn1GjQYB8GA1hz2rx36p-GHTR5_W_6qmCwK4SkO…:1)
    at HTMLButtonElement.dispatch (WebResource.axd?d=rQapnFTl_pgMjn3yGS-nPjPJHMBPhfpXzwM2FiWI1Aa7gNfWAx0PQEjD0ujArN09kh95WKS_2wFkw_49R…:3)
    at HTMLButtonElement.r.handle (WebResource.axd?d=rQapnFTl_pgMjn3yGS-nPjPJHMBPhfpXzwM2FiWI1Aa7gNfWAx0PQEjD0ujArN09kh95WKS_2wFkw_49R…:3)