Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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 

0 Replies

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