Populate Text Entry Boxes from XML then add them together in CP8
I have a project for a client where they would like to have an HTML 5 responsive quotation calculator that will work on all platforms.
The sales team access the quotation tool from a central web address and the pricing used for the products needs to be stored in an external XML file so the client can keep that up to date directly, which is then pulled in to the CP8 quotation tool.
I'm nearly there but i've hit a sticking point that I just can't work out.
I followed this tutorial Common JavaScript Interface in Adobe Captivate 8 - YouTube and can call in my data from the XML file. If I put the variable in a Text Caption it works great.
Based on the items selected I need to add the variables together to produce a total for the quote. To do this I used this tutorial as an example Creating a Simple Calculator in Adobe Captivate 8 - YouTube which does what I need but it uses Text Entry Boxes so the user can enter their own values.
What I need help with is bridging that gap. Ideally I need to call in my XML variables directly in to Text Entry Boxes rather than Text Captions but I can not find a way of doing this that works. I have seen an SWF file for a previous version of Captivate but that will not work for me as it needs to be HTML5/iPad friendly.
Does anyone have any clues, help, suggestions please as to how you call in XML variables directly to TEB's - thanks!
