• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

149

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);

Votes

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