Modal Forms Enablement

  • Updated

Sometimes you have modal forms or dynamically generated forms using JavaScript. In these cases, 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. 


  1. Demandbase field mappings for these forms must match the current setup we have for the master form template
  2. You must make the call above after the form renders otherwise Demandbase won't recognize that there's a form on the page
  3. Out of the box, 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) please review the documentation here that outlines the logic needed to support this use case

Was this article helpful?

0 out of 0 found this helpful