Hilary - I had only tested the form locally when I posted my last message. I have tried loading to SharePoint and am now getting an error of "Could not verify the form template on the specified server." and this is making the form not load to SharePoint. The error seems to be related to the code I have written in the button I added which checks if an assessment is taking place for the selected country/year/month vs. the schedule (a repeating table of the combined data from lists 2 and 3). if I remove the button, the form will upload (with some warnings about "filter expression is on external data and cannot be validated" and browser optimizations about "control sends data to server when value changes". The code I have in the button is as follows:
count(xdXDocument:GetDOM("CED_Reviews")/dfs:myFields//dfs:dataFields/d:SharePointListItem_RW/descendant-or-self::node()/d:Review_x0020_ID[contains(., current()/d:Test_x0020_ID) and ../d:Country = current()/d:Country and translate(substring(../d:Review_x0020_Target_x0020_Date, 0, 11), "-", "") >= translate(xdXDocument:get-DOM()/my:myFields/my:SchedulingSearch/my:SS_Date, "-", "") and translate(substring(../d:Review_x0020_Target_x0020_Date, 0, 11), "-", "") 0
How can I make it so that this works? Having the code in a calculated field rather than a button was also giving the same issue.