Skip navigation
Currently Being Moderated

Repeating subform

Jul 5, 2012 1:49 PM

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 

 
Replies
  • Currently Being Moderated
    Jul 9, 2012 12:26 PM   in reply to ParreLaws

    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";
    
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points