
Hello, I need help.
In the repeat section, when a button is pressed, I expect that button to get a repeat value ─ "eventinfo.sourceAttribute"
But when I use the actual code, It returns [undefined].
Can you tell me what I did wrong?
HTML Code
<fieldset class="repeating_ab">
<div class="sheet-ab-item">
<input type="checkbox" name="attr_ab_flag" class="sheet-check-flag" value="1"/>
<div class="sheet-ab-control">
<button class="sheet-dice" type="action" name="act_abillity" value="&{template:Insane} {{subject=@{Ab_Name}}}{{name=@{character_name}}}{{Types=@{Ab_Types}}}{{isMad=[[@{mad}+0)]]}}{{AssignedSkill=@{Ab_spec}}}{{target=[[(@{Ab_target}+0)]]}}{{target_real=[[(@{Ab_target}+0)-(@{all_mod}+0)]]}}{{roll=[[2d6]]}}{{Effect=@{Ab_effect}}}{{mod=[[@{all_mod}+0]]}}"></button>
</div>
<div class="sheet-ab-name">
<input type="text" name="attr_Ab_Name" value="" />
</div> .....
Script (Sheet work)
on("clicked:abillity clicked:repeating_ab:abillity", (eventInfo) => {
console.log(eventInfo);
let templateStr = eventInfo.htmlAttributes.value; ....
Console Result