
I am running into an issue where the value from an input field is not being added to a die roll when the sheet is first opened, the user changes the value in the input field, and immediately clicks on the die rolling button. sample code for the input field: <tr> <td><h6>Skill Modifier:</h6></td> <td><input type="number" name="attr_skill_mod" value="0" style="align:left;"/></td> </tr> And sample button: <tr> <td><button type='roll' title='Skill Roll' value='&{template:skill_roll} {{name=@{character_name} - skill roll}} {{skill=Poor}} {{level=Poor -1}} {{roll=[[4df-1+@{skill_mod}]]}}'></button><span style="margin-left:0px;">Poor Skill (-1)</span></td> </tr> I have been able to duplicate this using the following steps: 1) Upon opening the sheet, click on the input field and change the number. 2) Immediately click on the roll button. 3) The result shows the value prior to the update in #1 4) close the form and reopen, rinse and repeat. If after #1 I click on a different input field the roll shows the updated number. Also, this only occurs the very first time; if I repeate steps 1 through 3 without closing the form, it will always pull in the updated value. It appears the on-change event is not being triggered to update the underlying field after the sheet is opened when the roll button is clicked immediately after a change to an input field. Is this a known issue? Working as expected? If working as expected, is there a work-around or programatic solution? yada, yada, yada. Any guidance and help is greatly appreciated!