Yes, I could do it with rules, creating a rule where the click of the button causes a view switch, but having all these views creates a trip to the server, and I don't want that.
What I'm looking for is someone who can tell me what the equivalent is
in either C# or VB, so that the form can be browser-enabled.
Basically, the form has three fields and three buttons. The buttons are named "summary" "remarks" and "example" and the three fields are named likewise to correspond.
Activtab is another field in the data source, but not visible on the form itself.
Conditional formatting is set such that when the field activetab is not equal to one of the three other fields (summary, remarks, example), that field is hidden. Also, when activetab is selected, it changes color to match the different fields. It gives the appearance of clicking on tabs.
The code for each button:
function summary::OnClick(eventObj)
{
setActiveTab("summary");
}
function remarks::OnClick(eventObj)
{
setActiveTab("remarks");
}
function example::OnClick(eventObj)
{
setActiveTab("example");
}
and the code for activetab:
function setActiveTab(tabName)
{
XDocument.DOM.selectSingleNode("//my:ActiveTab").text=tabName;
}