Skip to main content
FistTechnik
Participating Frequently
Dec 27, 2021 12:22 PM UTC
Question

count option-fields vs check-boxes

I refer to the count-checkboxes code mentioned here.

I use Option-Fields instead to make only one activated checkbox valid.

How do I change the code to "read" all option-fields?

var nSum = 0;var aCkFlds = this.getField("checkn").getArray();for(var i=0;i<aCkFlds.length;i++){if(aCkFlds[i].isBoxChecked(0))nSum++;}event.value = nSum;

 

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

FistTechnik
Participating Frequently
Dec 27, 2021 3:51 PM UTC

I found this thread with similiarity and hope someone can help me there.

Translate
FistTechnik
Participating Frequently
Dec 27, 2021 4:27 PM UTC

I got it solved with this tutorial blog. Sadly I don't know how to delete this thread

Translate
FistTechnik
Participating Frequently
Dec 27, 2021 3:11 PM UTC

I think it's called RADIO-BUTTONS instead of OPTION-FIELDS which is just my german translation of it

Translate