NetTalk Central

Author Topic: Incorrect behavior on hide condtion  (Read 2245 times)

jtdunn

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Email
Incorrect behavior on hide condtion
« on: November 28, 2008, 07:36:42 AM »
On a report setup page I two options.  The first is a check box to allow the user to include all categories in the report.  When the 'All Categories' checkbox is checked the Category Prompt, Entry Field and Lookup Button are hidden and when unchecked they should be unhidden.  It works for the Entry Field and Lookup Button but not the prompt.  If I go to the lookup page and return then the Category Prompt is visible but it does not get hidden if I uncheck the All Categories check box.  Attached is a word document with screen shots of the settings on the NetWebForm and the behavior in the browser.

John


[attachment deleted by admin]

Poul

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: Incorrect behavior on hide condtion
« Reply #1 on: November 28, 2008, 01:32:24 PM »
bAllCategories, the send value to server is ticked, on the client-side tab?
I would normally use pweb.gsv('bAllCategories') in the condition

jtdunn

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Email
Re: Incorrect behavior on hide condtion
« Reply #2 on: November 28, 2008, 03:27:50 PM »
Thanks for the tip Poul, I'll try it but I'm not sure it will address the basic problem.  When the check box is unchecked, the 'Category:' prompt is not unhidden.  The Category Field and Lookup button are unhidden.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11181
    • View Profile
Re: Incorrect behavior on hide condtion
« Reply #3 on: November 28, 2008, 09:44:44 PM »
Hi John,

The trick is to make sure that the checkbox resets the hidden field.
But not _just_ resetting the VALUE but the PROMPT and COMMENT as well.
(If you go to the reset list, and click on the hidden field there you'll see what I mean).

Cheers
Bruce