Expand my Community achievements bar.

Repeating subform

Avatar

Level 4

I hope I can explain this clearly. I have a subform named "Edu", within this subform is another named "School", within the "School" subform is a set of radio buttons named "Type" with 4 value, also with the "School" subform is a subform named "SchInfo". The Edu is set to repeat based on a Numeric Field from earlier in the form (this works).

I have the "SchInfo" presence set to hidden and in the change:Event of "Type" I have the  script below.

if

(this.rawValue == "4") {

   SchInfo.presence = "visible"

}   

else {

    SchInfo.presence = "hidden"   

}  

This is where I'm running into a problem, when the user clicks on any of the other occurances of the radio button "Type" it makes the SchInfo visible or hidden only once. The user doesn't get a new SchInfo under each "Type". Which is what I'm looking for.

Thank you for your assistance.

Parre 

1 Reply

Avatar

Level 10

Hi,

the rawValue is not assigned during the change event that's why your expression doesn't work.

Use the click event of the radio button group instead.

SchInfo.presence = this.rawValue === "4" ? "visble" : "hidden";