<button template=new.js> launches automatic the first item NOT on press

if i try to open another template

with a

<button template="newtemplate.xml.js">

command


then this will only work in the first Index.xml.js template (from the sample download) but not in any other template that I selected in the Index.xml.js template

because when I update the AlertWithDescription.xml as you can see below it will launch the index2.xml.js on the 2nd button but then


automatically the first selection in the index2.xml.js is launched (like an auto click)


is this a bug or a feature? and how can it be disabled?



It would be really helpful if someone could give me an updated AlertWithDescription.xml template sample in which the buttons actually opens another template (or updates the Index Template just like "Apple Trailers App" does when you click "All Genres")


var Template = function() { return `<?xml version="1.0" encoding="UTF-8" ?>

<document>

<alertTemplate>

<title>Title</title>

<description>text.</description>

<button template="${this.BASEURL}templates/Index.xml.js" >

<text>Button 1</text>

</button>

<button template="${this.BASEURL}templates/Index2.xml.js" >

<text>Button 2</text>

</button>

</alertTemplate>

</document>`

}

I am having the same issue. On the second screen, it automatically loads the first selection. I can't make a selection. I found that when I have my app start from the second screen, it works. As soon as I add the first screen back it doesn't work. So basically it is only working on the first screen that loads. after that it is an autmatic selection.


Any help is appreciated.

- Dan

&lt;button template=new.js&gt; launches automatic the first item NOT on press
 
 
Q