<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: PLEASE HELP xdExtension!</title><link>https://www.infopathdev.com:443/forums/thread/10702.aspx</link><pubDate>Fri, 24 Nov 2006 10:39:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:10702</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/10702.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=10702</wfw:commentRss><description>Hi Edove,&lt;br /&gt;&lt;br /&gt;Your hideSection method like:&lt;br /&gt;&lt;br /&gt;function hideSection()&lt;br /&gt;{&lt;br /&gt;return true; &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Whenever you click optional section this code will be run and 'hideSection()' function returns the true value. You can call in that function where do you want run this function.&lt;br /&gt;&lt;br /&gt;For conditional formatting for the section, you need to set xdExtension:hideSection() is true.</description></item><item><title>PLEASE HELP xdExtension!</title><link>https://www.infopathdev.com:443/forums/thread/5934.aspx</link><pubDate>Thu, 23 Nov 2006 16:38:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5934</guid><dc:creator>edove</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5934.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5934</wfw:commentRss><description>Hi, &lt;br /&gt;&lt;br /&gt;I am trying to hide an option section using code, as I have come to realise that removing an option section deletes the data aswell!&lt;br /&gt;&lt;br /&gt;I have added an additional item to the drop down menu that appears when you click on an option section.&lt;br /&gt;&lt;br /&gt;In the MS Script Editor, I have then put this function:&lt;br /&gt;&lt;br /&gt;function hideSection::OnClick()&lt;br /&gt;{&lt;br /&gt;    return true; &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;And as a ConditionalFormat for the section, I have set it to hide if xdExtension:hideSection is true.&lt;br /&gt;&lt;br /&gt;Now if I change the function, to instead of returning true, popping up a window with text in it, it works fine. When I click on the optional section, press the menu item that I've added it pops open the window. &lt;br /&gt;&lt;br /&gt;But with the return true code it just doesn't work. Instead when I try to preview the form I get this error:&lt;br /&gt;&lt;br /&gt;"Function 'hideSection' did not return a value, or it returned a value that cannot be converted to an XSL data type."&lt;br /&gt;&lt;br /&gt;Can anyone tell me what I am doing wrong?!? Or if there is a better way to do this!&lt;br /&gt;</description></item></channel></rss>