Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[Help] Sheet worker not...well...working!

1621182403

Edited 1621258953
ISSUE SOLVED Hello everyone! I've been searching the forums far and wide, but nothing came up about this, so I'm just posting here hoping for help. I'm not a PRO, but I'm helping a friend of mine with the sheet worker part of a custom sheet. The sheet contains multiple tabs in the main section and should have tabs in one of the inner sections. At the moment our HTML code looks like this: <!DOCTYPE html> <html>     <head>         <link href="/style.css" type="text/css" rel="stylesheet">     </head>     <body>     <div class="sheet-row">         <div>             <button type="action" name="act_a" >a</button>             <button type="action" name="act_b" >b'</button>             <button type="action" name="act_c" >c' SPECIALI</button>             <button type="action" name="act_d" >d</button>         </div>         <input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab'  value='a'  />         <input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab'  value='b'  />         <input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab'  value='c'  />         <input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab'  value='d'  />                 <div class='sheet-a'>             stuff         </div>         <hr/>         <div class='sheet-b'>             stuff         </div>         <hr/>             <div class='sheet-c'>             <div>                 <button type="action" name="act_e" >e</button>                 <button type="action" name="act_f" >f</button>                 <button type="action" name="act_g" >g</button>                 <button type="action" name="act_h" >h</button>                 <button type="action" name="act_i" >i</button>             </div>             <input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab1'  value='e'  />             <input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab1'  value='f'  />             <input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab1'  value='g'  />             <input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab1'  value='h'  />             <input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab1'  value='i'  />                         <div class='sheet-e'>                 stuff             </div>             <div class='sheet-f'>                 stuff             </div>             <div class='sheet-g'>                 stuff             </div>             <div class='sheet-h'>                 stuff             </div>             <div class='sheet-i'>                 stuff             </div>         </div>         <hr/>              <div class='sheet-d'>             stuff         </div>     </div> <script type="text/worker">     const buttonlist = ["a","b","c","d"];     buttonlist.forEach(button => {         on(`clicked:${button}`, function() {             setAttrs({                 sheetTab: button             });         });     });     const buttonlist1 = ["e","f","g","h","i"];     buttonlist1.forEach(button => {         on(`clicked:${button}`, function() {             setAttrs({                 sheetTab1: button             });         });     }); </script> </html> As long as I leave only the first part of the worker (the one for "buttonlist"), it all works nice and fine, but as soon as i add the second part (the one for "buttonlist1") only the main tabs work and not those in the inner section. I've even tried to separate the workers - using two "<script></script>" sections - but to no avail. Please keep in mind that the sheet has a GrdiLayout, using rows and columns, with a matching and working CSS file. Could any of you, kind souls, look into it and point me towards any mistake I've made? Thanks in advance for your kindness and availability!
1621184474

Edited 1621184489
Kraynic
Pro
Sheet Author
You should really post your css as well.  Otherwise, people will need to write their own css, since the buttons won't do anything at all without the relevant css. My (probably totally wrong) initial reaction is that the value generated for your second set of buttons should not have the same name as the first set.  So maybe try sheetTab: button, and sheetTab1: button1, or something like that.
1621184561
Andreas J.
Forum Champion
Sheet Author
Translator
throw away the html and body elements, sheet sheet code don't have those you only need one of each input type='hidden' in those sections there was ouple of other mistakes There is my cleaned up version of the code, that should work better than the first version. <div class="sheet-row">         <div>             <button type="action" name="act_a" >a</button>             <button type="action" name="act_b" >b'</button>             <button type="action" name="act_c" >c' SPECIALI</button>             <button type="action" name="act_d" >d</button>         </div>         <input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab'  value='a'  />                 <div class='sheet-a'>             stuff         </div>         <hr/>         <div class='sheet-b'>             stuff         </div>         <div class='sheet-c'> <div>                 <button type="action" name="act_e" >e</button>                 <button type="action" name="act_f" >f</button>                 <button type="action" name="act_g" >g</button>                 <button type="action" name="act_h" >h</button>                 <button type="action" name="act_i" >i</button>         </div>         <input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab1'  value='e'  />                     <div class='sheet-e'>           stuff         </div>         <div class='sheet-f'>                 stuff         </div>         <div class='sheet-g'>                 stuff         </div>         <div class='sheet-h'>                 stuff         </div>        <div class='sheet-i'>                 stuff        </div>       </div>           <div class='sheet-d'>             stuff      </div> </div> <script type="text/worker">     const buttonlist = ["a","b","c","d"];     buttonlist.forEach(button => {         on(`clicked:${button}`, function() {             setAttrs({                 sheetTab: button             });         });     });     const buttonlist1 = ["e","f","g","h","i"];     buttonlist1.forEach(button => {         on(`clicked:${button}`, function() {             setAttrs({                 sheetTab1: button             });         });     }); </script> You also need to show the css, if the mistake is there. If my version doesn't work, you could change the variable names in the shecond sheet worker to button1, maybe there is a conflict:     const buttonlist1 = ["e","f","g","h","i"];     buttonlist1.forEach(button1 => {         on(`clicked:${button1}`, function() {             setAttrs({                 sheetTab1: button1             });         });     });
Kraynic said: You should really post your css as well.  Otherwise, people will need to write their own css, since the buttons won't do anything at all without the relevant css. My (probably totally wrong) initial reaction is that the value generated for your second set of buttons should not have the same name as the first set.  So maybe try sheetTab: button, and sheetTab1: button1, or something like that. Thank you for you hint! Anyway the CSS is working fine and posting 10000 lines would be not so funny for both me and you all...
1621187451
vÍnce
Pro
Sheet Author
Great you got it figured out.  btw: Normally you would just post the relevant css/html/js to spare 10k block of code. ;-)
Andreas J. said: throw away the html and body elements, sheet sheet code don't have those you only need one of each input type='hidden' in those sections there was ouple of other mistakes There is my cleaned up version of the code, that should work better than the first version. <div class="sheet-row">         <div>             <button type="action" name="act_a" >a</button>             <button type="action" name="act_b" >b'</button>             <button type="action" name="act_c" >c' SPECIALI</button>             <button type="action" name="act_d" >d</button>         </div>         <input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab'  value='a'  />                 <div class='sheet-a'>             stuff         </div>         <hr/>         <div class='sheet-b'>             stuff         </div>         <div class='sheet-c'> <div>                 <button type="action" name="act_e" >e</button>                 <button type="action" name="act_f" >f</button>                 <button type="action" name="act_g" >g</button>                 <button type="action" name="act_h" >h</button>                 <button type="action" name="act_i" >i</button>         </div>         <input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab1'  value='e'  />                     <div class='sheet-e'>           stuff         </div>         <div class='sheet-f'>                 stuff         </div>         <div class='sheet-g'>                 stuff         </div>         <div class='sheet-h'>                 stuff         </div>        <div class='sheet-i'>                 stuff        </div>       </div>           <div class='sheet-d'>             stuff      </div> </div> <script type="text/worker">     const buttonlist = ["a","b","c","d"];     buttonlist.forEach(button => {         on(`clicked:${button}`, function() {             setAttrs({                 sheetTab: button             });         });     });     const buttonlist1 = ["e","f","g","h","i"];     buttonlist1.forEach(button => {         on(`clicked:${button}`, function() {             setAttrs({                 sheetTab1: button             });         });     }); </script> You also need to show the css, if the mistake is there. If my version doesn't work, you could change the variable names in the shecond sheet worker to button1, maybe there is a conflict:     const buttonlist1 = ["e","f","g","h","i"];     buttonlist1.forEach(button1 => {         on(`clicked:${button1}`, function() {             setAttrs({                 sheetTab1: button1             });         });     }); Nice! I hadn’t noticed the repeated hidden field...my bad! As for the CSS, as per the previous post, it would be boring enough wading through it...plus it would not add anything to the discussion as it works smoothly enough. I’ll implement the suggested changes and submit the code to my friend hoping for it to work as intended. For now thanks to both of you Andreas and Kraynic, I’ll let you know about the outcome!
vÍnce said: Great you got it figured out.  btw: Normally you would just post the relevant css/html/js to spare 10k block of code. ;-) Right, didn’t think of that... Anyway, nothing in the CSS is connected to the tab-switching mechanism, if that’s what you mean here. Thanks for the insight!
1621190615

Edited 1621190649
Andreas J.
Forum Champion
Sheet Author
Translator
Anargyros said: Anyway, nothing in the CSS is connected to the tab-switching mechanism, if that’s what you mean here. That's impossible. Your sheet is following the base example of making sheet tabs, and use a tiny bit of css: <a href="https://wiki.roll20.net/CSS_Wizardry#Tabs" rel="nofollow">https://wiki.roll20.net/CSS_Wizardry#Tabs</a> The relevant codeblock looks probably something like this: /*Configure the tab buttons*/ .sheet - a, .sheet - b, .sheet - c, .sheet -d, .sheet - e, .sheet -f { display: none; } /* show the selected tab */ .sheet - tabstoggle[value = "a" ] ~ div.sheet - a, .sheet - tabstoggle[value = "b" ] ~ div.sheet -b , .sheet - tabstoggle[value = "c" ] ~ div.sheet -c , .sheet - tabstoggle[value = "d" ] ~ div.sheet -d , .sheet - tabstoggle[value = "e" ] ~ div.sheet -e , .sheet - tabstoggle[value = "f" ] ~ div.sheet -f ,{ display: block; }
Andreas J. said: Anargyros said: Anyway, nothing in the CSS is connected to the tab-switching mechanism, if that’s what you mean here. That's impossible. Your sheet is following the base example of making sheet tabs, and use a tiny bit of css: <a href="https://wiki.roll20.net/CSS_Wizardry#Tabs" rel="nofollow">https://wiki.roll20.net/CSS_Wizardry#Tabs</a> The relevant codeblock looks probably something like this: /*Configure the tab buttons*/ .sheet - a, .sheet - b, .sheet - c, .sheet -d, .sheet - e, .sheet -f { display: none; } /* show the selected tab */ .sheet - tabstoggle[value = "a" ] ~ div.sheet - a, .sheet - tabstoggle[value = "b" ] ~ div.sheet -b , .sheet - tabstoggle[value = "c" ] ~ div.sheet -c , .sheet - tabstoggle[value = "d" ] ~ div.sheet -d , .sheet - tabstoggle[value = "e" ] ~ div.sheet -e , .sheet - tabstoggle[value = "f" ] ~ div.sheet -f ,{ display: block; } That’s right, of course...stupid me! I’m not able to post the CSS anyway, I’ll do that tomorrow. Thanks for helping me out on this!
1621191972
Andreas J.
Forum Champion
Sheet Author
Translator
<a href="https://gist.github.com/" rel="nofollow">https://gist.github.com/</a> is a good method for sharing larger bits of code, when needed.
Oh my...how blind must I be to not notice such a mistake? I’ve just spotted the black hole into which all the functionality disappears: I’m missing the CSS for the second set of tabs! Going to add that part and see if it works...fingers crossed!
1621195520
Kraynic
Pro
Sheet Author
Anargyros said: Oh my...how blind must I be to not notice such a mistake? Posting an issue publicly that turns out to be my fault tends to be my workflow as well.&nbsp; Like having all my css in order, but a typo in a class name in the html that I just.. couldn't.. see.&nbsp;
YES...IT...WORKS! (movie reference here) HTML has been changed to &lt;!DOCTYPE html&gt; &lt;html&gt; &nbsp;&nbsp;&nbsp; &lt;head&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;link href="/style.css" type="text/css" rel="stylesheet"&gt; &nbsp;&nbsp;&nbsp; &lt;/head&gt; &nbsp;&nbsp;&nbsp; &lt;body&gt; &nbsp;&nbsp; &nbsp;&lt;div class="sheet-row"&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;div&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;button type="action" name="act_a" &gt;a&lt;/button&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;button type="action" name="act_b" &gt;b'&lt;/button&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;button type="action" name="act_c" &gt;c' SPECIALI&lt;/button&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;button type="action" name="act_d" &gt;d&lt;/button&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab'&nbsp; value='a'&nbsp; /&gt;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;div class='sheet-a'&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; stuff &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;hr/&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;div class='sheet-b'&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; stuff &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;hr/&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;div class='sheet-c'&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;div&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;button type="action" name="act_e" &gt;e&lt;/button&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;button type="action" name="act_f" &gt;f&lt;/button&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;button type="action" name="act_g" &gt;g&lt;/button&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;button type="action" name="act_h" &gt;h&lt;/button&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;button type="action" name="act_i" &gt;i&lt;/button&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/div&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab1'&nbsp; value='e'&nbsp; /&gt;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;div class='sheet-e'&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; stuff &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/div&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;div class='sheet-f'&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; stuff &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/div&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;div class='sheet-g'&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; stuff &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/div&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;div class='sheet-h'&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; stuff &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/div&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;div class='sheet-i'&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; stuff &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/div&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;hr/&gt; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;div class='sheet-d'&gt; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; stuff &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt; &nbsp;&nbsp; &nbsp;&lt;/div&gt; &lt;script type="text/worker"&gt; &nbsp;&nbsp; &nbsp;const buttonlist = ["a","b","c","d"]; &nbsp;&nbsp; &nbsp;buttonlist.forEach(button =&gt; { &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; on(`clicked:${button}`, function() { &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setAttrs({ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sheetTab: button &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }); &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; }); &nbsp;&nbsp; &nbsp;}); &nbsp;&nbsp; &nbsp;const buttonlist1 = ["e","f","g","h","i"]; &nbsp;&nbsp; &nbsp;buttonlist1.forEach(button1 =&gt; { &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; on(`clicked:${button1}`, function() { &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setAttrs({ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sheetTab1: button1 &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }); &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; }); &nbsp;&nbsp; &nbsp;}); &lt;/script&gt; &lt;/html&gt; and CSS now is: .sheet-a, .sheet-b, .sheet-c, .sheet-d{ &nbsp;&nbsp; &nbsp;display: none; } .sheet-e, .sheet-f, .sheet-g, .sheet-h, .sheet-hi &nbsp;&nbsp; &nbsp;display: none; } /* show the selected tab */ .sheet-tabstoggle[value="a"] ~ div.sheet-a, .sheet-tabstoggle[value="b"] ~ div.sheet-b, .sheet-tabstoggle[value="c"] ~ div.sheet-c, .sheet-tabstoggle[value="d"] ~ div.sheet-d{ &nbsp;&nbsp; &nbsp;display: block; } .sheet-tabstoggle[value="e"] ~ div.sheet-e, .sheet-tabstoggle[value="f"] ~ div.sheet-f, .sheet-tabstoggle[value="g"] ~ div.sheet-g, .sheet-tabstoggle[value="h"] ~ div.sheet-h, .sheet-tabstoggle[value="i"] ~ div.sheet-i{ &nbsp;&nbsp; &nbsp;display: block; } and it all goes as smooth as intended! What was the problem? one of the lines in the CSS was missing an 'e' in 'sheet'... much ado about nothing , one might say! I'll change the subject to [SOLVED] now. Thanks to everyone who replied to this post and contributed to solve the issue. Cheers everyone!!
Hm...cannot edit title. Anyone knows how to show this is a solved issue? Thanks!
1621256939
Andreas J.
Forum Champion
Sheet Author
Translator
We users can't edit Forum Post titles,&nbsp; but you can edit your initial post and add a large Isse Solved at the top. Anyway, I want to repeat that it's best for you to remove the redudant &lt;!DOCTYPE html&gt; &lt;html&gt; &nbsp;&nbsp;&nbsp; &lt;head&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;link href="/style.css" type="text/css" rel="stylesheet"&gt; &nbsp;&nbsp;&nbsp; &lt;/head&gt; &nbsp;&nbsp;&nbsp; &lt;body&gt; part from the code, no character sheet should have that, at best it does nothing, at worst it causes bugs in your sheet. Besides, you don't have a closing&nbsp; &lt;/body&gt; element there. In the past, your code wouldn't even have worked due to those existing in your code, but seems things work even after closing the body element, so guess the sheet stuff is more forgiving now.
Thanks Andreas, post edited as per your suggestion. As for the extra HTML lines, I agree with you about removing them and just forgot to do so, but it looks like they are ignored by the system so I guess it can be left as is if no issue arises. Thanks again! Have a good one, everybody!