NetTalk Central

Author Topic: NetWebForm - Select Tab  (Read 4102 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
NetWebForm - Select Tab
« on: May 04, 2017, 11:52:34 PM »
Hi Guys,

I'd like a NetWebForm (memory) to select a specific tab, once the user clicks the "Ok" button.

I get this to work by including an empty "required" field on the tab, but I don't want this field to be visible on the tab.

Unfortunately when I hide the field, it now longer enforces the "required" attribute.

Any ideas perhaps?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NetWebForm - Select Tab
« Reply #1 on: May 05, 2017, 01:11:12 AM »
Hi Rupert,

I think you're describing a solution, but not the root problem.

I think you're suggesting that clicking on the OK button does not "close" the form, but instead just switches to another tab?

Can you explain more of why you would have this sort of behavior? ie what is the root problem you are trying to solve?

cheers
Bruce


rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Re: NetWebForm - Select Tab
« Reply #2 on: May 05, 2017, 02:26:11 AM »
Hi Bruce,

When the user clicks "OK" I'd like the memory form to select a specific tab, and not close the window.

To solve the issue, I tried inserting a field on the desired tab, with a required attribute.  Now when the user clicks "OK" it selects the correct tab.  This is working well!

Problem is, I'd like to do this without showing the "empty field" marked as required, which I inserted on purpose.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NetWebForm - Select Tab
« Reply #3 on: May 07, 2017, 10:26:48 PM »
Hi Rupert,

you are describing your solution.
I'm interested in _why_ you want to do this in the first place.

cheers
Bruce

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Re: NetWebForm - Select Tab
« Reply #4 on: May 07, 2017, 10:38:08 PM »
Hi Bruce,

I am using a memory form to filter & show results.
This is working well. 

Thus when the user clicks 'OK', I would like the form to select the tab where the results are displayed.
It should not close the form.

There are 3 tabs,
1.  Range by Date
2.  Filter by criteria
3.  Show results

I've now put the same procedure name in the "URL on Save" of the form.  Thus when the user clicks "OK" it loads the same form, but it is not yet selecting the desired tab.

First price would be, when the user clicks "OK" it show go to the results tab - every time.