I want a check box to add a number to another box

New Here ,
Sep 08, 2022 Sep 08, 2022

Copy link to clipboard

Copied

I'm working on a character sheet and im working on making it auto fill. Im trying to figure out how when i click the bubble to the left of athletics, it will add the bottom proficency bonus to the athletic skill but always add the top str bonus even when the bubble isnt checked. snip.png

TOPICS
Edit and convert PDFs , JavaScript

Views

13

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 08, 2022 Sep 08, 2022

Copy link to clipboard

Copied

LATEST

I got it to work using this code

 

if(this.getField("athc").value != "Off"){
event.value = (this.getField("strmod").value) + (this.getField("Prob").value);}
else
event.value = (this.getField("strmod").value);

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines