Enable Modal Forms

  • Updated

When you have modal forms or dynamically generated forms using JavaScript, there's a possibility that Demandbase loads and looks for a form that doesn't exist yet. In order to accommodate for this racing condition you can call Demandbase.utils.loadFormModule(), once the form has completely loaded

Important:

  • Demandbase field mappings for these forms must match the current setup we have for the master form template.
  • You must make the call above after the form renders. Otherwise, Demandbase won't recognize that there's a form on the page.
  • By default, Demandbase doesn't support multiple forms on the same page. If you need to hook into two or more forms (1 modal and 1 on page), review Enrich Multiple Forms on One Page, which outlines the logic needed to support this use case.

Was this article helpful?

0 out of 0 found this helpful