NetTalk Central

Author Topic: conditionaly hide/unhide tabs  (Read 3375 times)

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
conditionaly hide/unhide tabs
« on: January 09, 2015, 10:46:09 AM »
Bruce,

Working with NT 8.23.  I have 4 tabs on a form.  On tab one are two drop controls.  If drop 1  is 'yes' I want to hide tab 2.  If drop 2 is yes I want to hide tab 3.  If either is 'no' then the tabs should be viewable.

I have set conditions on the tabs and this works after saving the form.  However, I would like to "dynamically" hide/unhide these tabs while still on tab 1.  I have tried setting each field in the reset list of the form but I don't get the dynamic effect I'm looking for.

Thanks,

Jeff
« Last Edit: January 09, 2015, 10:51:16 AM by kingja »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: conditionaly hide/unhide tabs
« Reply #1 on: January 12, 2015, 01:48:58 AM »
It's certainly do'able Jeff, so if you haven't come right be sure to ask about this at this week's webinar.
The key things to do;

a) make sure the tabs have an equate
b) set the "Hide IF" condition for the tab (not the "Include" condition.)
c) make sure you use session values in the Hide If expression
d) set the drop fields to "reset" the equates set in a) above.

cheers
Bruce

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Re: conditionaly hide/unhide tabs
« Reply #2 on: January 12, 2015, 07:28:21 AM »
Bruce,

    You are terrific! 

I was using the include condition and resetting the two drop fields.  I did not have an equate for the tabs.

Your suggestion to use the "Tab Hide If" and reset the equate was what I needed.  I was not aware that a reset could be done on an equate.  I went to the end of the reset field list and there were my equates!  What a surprise!

Thanks for the help.

Jeff

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: conditionaly hide/unhide tabs
« Reply #3 on: January 12, 2015, 08:31:36 PM »
Hi Jeff,

I think Resets can _only_ be done on an Equate... <g>...

cheers
Bruce