NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: MyBrainIsFull on December 14, 2014, 08:57:38 PM

Title: Conditional hidden fields dissapear
Post by: MyBrainIsFull 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]
Title: Re: Conditional hidden fields dissapear
Post by: terryd on December 14, 2014, 09:34:58 PM
Hi Kevin
The hide condition should be p_web.GSV('Cou:DiscountFlag') = 0
Title: Re: Conditional hidden fields dissapear
Post by: Bruce on December 14, 2014, 10:04:08 PM
Terry is correct.