Conditionally Hide\show a multipage tab

G

greg

Hi,

I am modifying the standard Contacts Form (OL2003)
On a customised page I have some Multipage tabs, some nested inside
others.

I would like to show or hide selected multipage tabs according to
either a checkbox a toggle button or a command button, I would probably
prefer a checkbox.

It is possible I have this wrong, but the HideFormPage and
ShowFormPage don't seem to work on multipage tabs - just the standard
ones.

Each multipage has a "Visible= true/false" in advance properties, but I
am not sure how to set this via a checkboxs or buttons

Any help would be very welcome

Greg
 
G

greg

Sorted this - vbscript you have to be very literal in addressing the
tabs - include all containers:

Sub UpdateServiceTabs()
Dim PathToMultitabs
Dim objMPRecSrvTabAudit

Set
PathToMultitabs=Item.GetInspector.ModifiedFormPages("Services&Fees").Controls("MultiPage1").pages("Services").Controls
("MultiPage2")
Set objMPRecSrvTabAudit =PathToMultitabs.Pages("SrvTabAudit")

REM objMPRecSrvTabAudit
If UserProperties.item("FF-CB-Audit").value = True THEN
objMPRecSrvTabAudit.visible = True
Else
objMPRecSrvTabAudit.visible = False
End IF

End Sub

Cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top