Hi,
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!
I have added an additional item to the drop down menu that appears when you click on an option section.
In the MS Script Editor, I have then put this function:
function hideSection::OnClick()
{
return true;
}
And as a ConditionalFormat for the section, I have set it to hide if xdExtension:hideSection is true.
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.
But with the return true code it just doesn't work. Instead when I try to preview the form I get this error:
"Function 'hideSection' did not return a value, or it returned a value that cannot be converted to an XSL data type."
Can anyone tell me what I am doing wrong?!? Or if there is a better way to do this!