Sorry if this has already been discussed. I did a search and found info, but didnt help me. This should be easy for the pros tho :)
I have a field in a repeating section (a checkbox) in which I used an onload to try and change the value of 2 fields. Code below:
Sub XDocument_OnLoad(eventObj)
XDocument.Query
Set OC = XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:tbl_Project/d:tbl_Outcome/@Outcome_Changed")
Set OCN = XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:tbl_Project/d:tbl_Outcome/@Outcome_Changed_Note")
If OC.Text = "Y" Then
OC.Text = "N"
OCN.Text = ""
End If
End Sub
Now this works a treat only for the first value, ignoring subsuquent ones. I tried to get my head around selectNodes but cant seem to get it to work. Can someone please show me what changes I need to make.
Sorry for the lame post.
Cheers,