Skip to main content
Participating Frequently
September 22, 2018
질문

Shown/Hidden field no longer calculates when triggered by a radio button

  • September 22, 2018
  • 1 답변
  • 1134 조회

I have a simple subtraction calculation (A-B=C) that worked fine until I designated these fields as either shown/hidden based on the response to a radio button. If radio button 1 is clicked, the fields for A, B, and C are "shown". If any of the other radio buttons (button 2 or button 3) are clicked, A, B, and C are hidden. Once I added this script, the C field no longer calculates. Can anyone help?

이 주제는 답변이 닫혔습니다.

1 답변

Thom Parker
Community Expert
Community Expert
September 22, 2018

There's no reason for the visibility of the fields to affect the calculation, so there is something else going on.  Have you ensured the calculation (script) is still there? Are A and B calculated values, or are they user entered? Has anything else changed on the form?

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
annerose작성자
Participating Frequently
September 22, 2018

A is user-entered, b is calculated based on the answer to A. I grouped the 3 fields with the same prefix "T1." so that when the first radio button is selected, these fields are shown. the calculation for B works.

annerose작성자
Participating Frequently
September 23, 2018

You need to use a filesharing site like dropbox or google drive and post a sharable link in the reply.


thanks. here is the link:

Dropbox - 2018 HS Subsidy Authorization Form-fillable6.pdf