Hello,
I'm trying to show or hide rows on an edit page. In the "Before display" event of the edit page I have this code:
if values("DataType") = "Text" then
xt.assign "intAnswer_fieldblock",False
else
xt.assign "txtAnswer_fieldblock",False
end if
When the edit page is normal this works: I see the appropriate row and the save button saves the record.
When I set the edit page to show in a popup window, the appropriate row is displayed, but when the values("DataType") record does not = "Text" (i.e. the txtAnswer_fieldblock is hidden and the intAnser_fieldblock is showing), the save button does not work.
On both the normal edit page and the popup window edit page, when the values("DataType") record does not = "Text" I get this error (shown in the lower left corner of IE):
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Tue, 25 Jan 2011 19:30:02 UTC
Message: 'this.valueElem.get(...).disabled' is null or not an object
Line: 167
Char: 471
Code: 0
URI: http://localhost/SewardSurveys/include/runnerJS/RunnerControls.js
When the edit page is in a popup window I also get this additional error after trying to save:
Webpage error details
Message: No such interface supported
Line: 18
Char: 1
Code: 0
URI: http://localhost/SewardSurveys/include/jquery.js
I hope this isn't too much info; i'm not sure what you'll need. Thanks for your help.
Tim