NetTalk Central

Author Topic: Hiding and Unhiding Form Tabs based on information entered on the form  (Read 2423 times)

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
I am trying to create a form where the tabs that should be displayed depend on information entered on the first tab.
So I would like to hide or disable the other tabs until I have entered all the fields on the first page which will determine the tabs to then unhide/display. If I use the wizard form type and click next then I would like clicking next to display the next valid tab.
Any pointers please.Thanks
Terry Davidson
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Johan de Klerk

  • Full Member
  • ***
  • Posts: 214
  • Johan de Klerk
    • View Profile
    • Designer Software
Re: Hiding and Unhiding Form Tabs based on information entered on the form
« Reply #1 on: February 07, 2009, 03:51:15 AM »
Hi Terry,

Not at this moment.

Here are some liks to other posts about the same questions.

1) http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=125.0
2) http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=501.0

I also need the same functionality.

Regards

Johan de Klerk
Clarion 10, NT 11.57

bshields

  • Sr. Member
  • ****
  • Posts: 392
    • View Profile
    • Inhabit
    • Email
Re: Hiding and Unhiding Form Tabs based on information entered on the form
« Reply #2 on: February 10, 2009, 12:34:06 AM »
Hi Terry and Johan,

I did this a year or so ago on a test project.

It was ugly. But worked.

I had a radio button and depending upon its value it turned on and off certain tabs.

Firstly i needed to save all fields values in session variables to save their state.

I then had to save the client side value.

I added this handcoded JS to the control.

'sv(''LIS__PropertyType'',''listingupdate_lis__propertytype_value'',1,FieldValue(this)); window.open(''ListingUpdate?SessionID='&p_web.SessionID&''',''MainRight'')'

My variable that dictated the tab changes was LIS:PropertyType.

When the user selected a value, it would reload (yes full page refresh) the page, but the tabs would be redrawn correctly and work.

Its awful I know, but it worked.

Regards
Bill

Johan de Klerk

  • Full Member
  • ***
  • Posts: 214
  • Johan de Klerk
    • View Profile
    • Designer Software
Re: Hiding and Unhiding Form Tabs based on information entered on the form
« Reply #3 on: February 10, 2009, 07:04:57 AM »
Hi Bill,

Thanks for the update.

Sounds like to much work for me at this stage.

I think I will wait for NetTalk 5.

Regards

Johan de Klerk
Clarion 10, NT 11.57