1 Reply Latest reply on Dec 16, 2012 8:40 AM by philmodjunk

    Conditional opening of a Tab

    rsagall_1

      Title

      Conditional opening of a Tab

      Post

           I have a field called "primary address" that is a radio button field with two options - "home" or "buiness."

           I have a tab panel with two tabs - "home" and "business."

           I want a way to enter a record and have a tab opening that depends on the value of "primary address." In other words, if "home" is clicked in the "primary address" field, then when I open that record the "home" tab panel is open. And when I open a record that has "business" selected, the "business" tab panel is opened.

           Thanks,

           Rich

            

        • 1. Re: Conditional opening of a Tab
          philmodjunk

               Use the Name box in the inspector's position tab to give each tab panel an object name.

               Then use the onRecordLoad script trigger to perform a script such as:

               If [table::radioButton = "home" ]
                 Go to Object [ "objectnameforHomePanelGoesHere"]
               Else
                 Go to Object ["objectnaemforBusinessPanelGoesHere"]
               End If

               And if you give the tab panels exactly the same names as your radiobutton field's values, this script can be just one line:

               Go to Object [YourTable::RadioButtonField]