NetTalk Central

Author Topic: Conditional hidden fields dissapear  (Read 3028 times)

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Conditional hidden fields dissapear
« on: December 14, 2014, 08:57:38 PM »
A form - of  "Courses"
has a sell price and has discount price and date discount ends
also there is a flag (byte) to set the item as "discount is active"

cou:SellPrice - decimal
cou:DiscountFlag - byte
cou:DiscountPrice - decimal
cou:DiscountEndsDate -long

The sell price is always visible
The discount price and end date are only visible if the discountFlag is true
See Image 1

This works just fine - see image 2
-------------------------------------
 "1" shows no discount
 "2" shows the two empty fields when flag is set
-------------------------------------
But when I go to enter data, either a dollar value or a date, as soon as I enter data and move off the entry field, the field disappears
-------------------------------------
"3" shows what happens when I enter $22 into the dollar entry field
"4" shows a similar bug, when calendar is accepted the date entry field disappears.

-------------------------------------

NT8-32
C9.1.0 11313

[attachment deleted by admin]

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Conditional hidden fields dissapear
« Reply #1 on: December 14, 2014, 09:34:58 PM »
Hi Kevin
The hide condition should be p_web.GSV('Cou:DiscountFlag') = 0
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Conditional hidden fields dissapear
« Reply #2 on: December 14, 2014, 10:04:08 PM »
Terry is correct.