I have been studying the sheet workers (searching and reading threads in the forum), looking at TAS script (even got it placed in a test sheet), and reading the various samples given on the TAS github (specifically the simplesum) but I do not have a clue on how to get it to work on my sheet (it is giving me a headache trying to understand it). The main reason for my desire to learn (at least get it working) is to take my inventory sections ( repeating fields) and total up the weight for encumbrance output (non repeating field) Now I'm wondering where or what do I do with the sample? <h3>Inventory</h3>
<div class="inventory-row headers">
<div class="name" >Item</div>
<div class="quantity" >Qty</div>
<div class="weight" >Weight</div>
<div class="totalweight" >Total Weight</div>
<div class="cost" >Cost($)</div>
<div class="runningtotal" >Running Total($)</div>
</div>
<fieldset class="repeating_inventory">
<div class="inventory-row">
<input class="name" type="text" name="attr_item" placeholder="item name" title="name" />
<input class="quantity" type="text" name="attr_quantity" value="0" title="quantity" />
<input class="weight" type="text" name="attr_weight" value="0" title="weight" />
<input class="totalweight" type="text" name="attr_totalweight" value="0" title="totalweight" />
<input class="cost" type="text" name="attr_cost" value="0" title="cost" />
<input class="runningtotal" type="text" name="attr_runningtotal" value="0" title="running total" />
</div>
</fieldset>
<div class="footer">
<div class="total">Total Weight<br><input class="sumtotalweight" type="text" name="attr_total_weight" value="0" title="total weight" /></div>
<div class="total">Total Cost<br><input class="sumtotalcost" type="text" name="attr_total_cost" value="0" title="total cost" /></div>
<div class="total">Summary:<br><textarea class="summary" type="textarea" name="attr_summary" title="summary"/></textarea>
</div>
Do I take this example and work it into my code (just the first tab shown as the rest are duplicates) <!--Inventory -->
<div class="sheet-section-inventory">
<div class="sheet-row ">
<!-- Loot-->
<div class="sheet-col-1-2 sheet-padr">
<h4 class="sheet-center">Coin Carried </h4>
<div class="sheet-row sheet-sub-header sheet-center">
<div class="sheet-col-1-4 sheet-center sheet-small-label">CP</div>
<div class="sheet-col-1-4 sheet-center sheet-small-label">SP</div>
<div class="sheet-col-1-4 sheet-center sheet-small-label">GP</div>
<div class="sheet-col-1-4 sheet-center sheet-small-label">Total Value(GP)</div>
</div>
<div class="sheet-row sheet-center">
<div class="sheet-col-1-4" title="Copper Pieces"><input type="number" name="attr_cp" value="0" min="0" step="1"></div>
<div class="sheet-col-1-4" title="Silver Pieces"><input type="number" name="attr_sp" value="0" min="0" step="1"></div>
<div class="sheet-col-1-4" title="Gold Pieces"><input type="number" name="attr_gp" value="0" min="0" step="1"></div>
<div class="sheet-col-1-4" title="Total (in Gold Pieces)"><input type="number" name="attr_money_total_gp" value="(@{cp} / 100) + (@{sp} / 10) + @{gp} " disabled="disabled"></div>
</div>
<h4 class="sheet-center">Encumbrance </h4>
<div class="sheet-row sheet-sub-header">
<div class="sheet-col-1-4 sheet-center sheet-small-label">Equipment</div>
<div class="sheet-col-1-4 sheet-center sheet-small-label">Coin</div>
<div class="sheet-col-1-4 sheet-center sheet-small-label">Other</div>
<div class="sheet-col-1-4 sheet-center sheet-small-label sheet-padr">Total</div>
</div>
<div class="sheet-row">
<div class="sheet-col-1-4 sheet-center"><input type="number" name="attr_inventory_weight" value="0" title="Total up your equipment Worn and Carried then place amount here"></div>
<div class="sheet-col-1-4 sheet-center"><input type="number" name="attr_coin_weight" value="((@{CP} + @{SP} + @{GP})/10)" disabled="disabled"></div>
<div class="sheet-col-1-4 sheet-center"><input type="number" name="attr_other_weight" value="0" min="0"></div>
<div class="sheet-col-1-4 sheet-center sheet-padr"><input type="number" name="attr_total_weight" value="@{inventory_weight} + @{coin_weight} + @{other_weight}" disabled="disabled"></div>
</div>
</div>
<!-- Inventory tab -->
<div class="sheet-col-1-2">
<h4 class="sheet-center">Treasure Notes </h4>
<textarea name="attr_lootnotes"></textarea>
</div>
</div>
<h4 class="sheet-center">Equipment </h4>
<input type="radio" name="attr_inventorytab" class="sheet-inventorytab sheet-inventorytab1" value="1" title="Page 1" checked="checked" />
<span class="sheet-inventorytab sheet-inventorytab1">Worn</span>
<input type="radio" name="attr_inventorytab" class="sheet-inventorytab sheet-inventorytab2" value="2" title="Page 2" />
<span class="sheet-inventorytab sheet-inventorytab2">Carried</span>
<input type="radio" name="attr_inventorytab" class="sheet-inventorytab sheet-inventorytab3" value="3" title="Page 3" />
<span class="sheet-inventorytab sheet-inventorytab3">Transportation</span>
<input type="radio" name="attr_inventorytab" class="sheet-inventorytab sheet-inventorytab4" value="4" title="Page 4" />
<span class="sheet-inventorytab sheet-inventorytab4">Elsewhere</span>
<input type="radio" name="attr_inventorytab" class="sheet-inventorytab sheet-inventorytab99" value="99" title="Show All" />
<span class="sheet-inventorytab sheet-inventorytab99">Show All</span>
<span class="sheet-spacer"></span>
<!-- Inventory Page 1-->
<div class="sheet-inventory-page1">
<input type="text" class="sheet-center sheet-sub-header" name="attr_tabinvtitle1" value="What is being worn such as armor or clothing" disabled="disabled">
<div class="sheet-row sheet-sub-header">
<div class="sheet-col-1-4 sheet-center sheet-small-label sheet-padl">Name</div>
<div class="sheet-col-1-12 sheet-center sheet-small-label">Qty</div>
<div class="sheet-col-1-12 sheet-center sheet-small-label">Uses</div>
<div class="sheet-col-1-12 sheet-center sheet-small-label">Weight</div>
<div class="sheet-col-1-2 sheet-center sheet-small-label sheet-padl">Notes</div>
</div>
<fieldset class="repeating_inventtab1">
<div class="sheet-row">
<div class="sheet-col-1-4 sheet-small-label sheet-left"><input type="text" name="attr_itemname"></div>
<div class="sheet-col-1-12 sheet-padl sheet-center"><input type="number" name="attr_itemquantity"></div>
<div class="sheet-col-1-12 sheet-padl sheet-center"><input type="number" name="attr_itemuses"></div>
<div class="sheet-col-1-12 sheet-padl sheet-center"><input type="number" name="attr_itemwornenc"></div>
<div class="sheet-col-1-2 sheet-padl sheet-small-label sheet-left"><input type="text" name="attr_itemdesc"></div>
</div>
</fieldset>
</div>
or what?