내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Need help running the calculate event depending on a checkbox value

Avatar

Level 6

Hi all,

I'm having trouble incorporating the calculate event to execute depending on whether a checkbox is checked or unchecked. Seems like any way I go, they will not play together. This might be easy for a JS expert but its not working for me. So below is a link to the form and I have stripped it of anything I've tried that didnt work so you can have a clean slate. I have two tables on this form that are essentially the same thing so if we can get the top one working I can get the second one working on my own.

 

Here is how it should work. The repeating row in the first table (tblWarrants) has a Quantity (quantity) and Unit Cost (unitCost) fields when multiplied together will show that value in either the Maint. Cost (maintCost) or Engr. Cost (engrCost) fields. What determines this is if the checkbox (cbEng) is checked or unchecked. If cbEng is checked then I need the calculation to run on the engrCost field and show the value. When the cbEng checkbox is unchecked then I need cbEng to be null and the maintCost field to calculate its value. Upon opening or by default, I need the cbEng to be unchecked and engrCost field to be empty/null. 

 

https://drive.google.com/drive/folders/10wPFynb1frPGLHtdwaclgRTUDfyYaHek?usp=sharing

 

Thank you!

 

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Employee

@nowackem Please check out this form and let me know if it is working as expected. Thanks!

원본 게시물의 솔루션 보기

2 답변 개

Avatar

정확한 답변 작성자:
Employee

@nowackem Please check out this form and let me know if it is working as expected. Thanks!

Avatar

Level 6

Thank you! That's perfect.