Skip to main content
Wayne_Sargent
Participant
May 29, 2019
Question

Spawn Multiple Templates

  • May 29, 2019
  • 1 reply
  • 530 views

I have a drop down box that I would like to spawn multiple pages (templates) based on value.  Currently using this code.  I also would like the pages to all spawn after page 15.

// get the value from the dropdown control

var sel = this.getField("Program_Select").value;

// determine the template name

var templateName = "";

switch (sel) {

  case 1: templateName = "CDL1";

    break;

  case 1: templateName = "CDL2";

    break;

  case 1: templateName = "CDL3";

    break;

 

}

// if we have a template name, spawn the template

if (templateName != "") {

  var t = this.getTemplate(templateName);

  t.spawn({nPage: event.target.page+1, bOverlay: false});

}

This topic has been closed for replies.

1 reply

Participant
May 31, 2019

Ok