NetTalk Central

Author Topic: Troubles with conditional hide filter.  (Read 344 times)

jking

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
    • Email
Troubles with conditional hide filter.
« on: February 20, 2024, 05:22:57 PM »
Hello,

     I'm struggling with how to construct the conditional hide on a field in a NT app.  This is what I would like:

CRF002Rad:Recommend_RT_PBI  <> 'Other'   OR
CRF002Rad:Recommend_RT_WBI <> 'Other'

I know this has to be a string so I have tried the following:

'CRF002Rad:Recommend_RT_PBI  <> Other OR ' &
'CRF002Rad:Recommend_RT_WBI <> Other'

Still getting errors.  Can anyone help me construct this properly?

Thanks,

Jeff King

Jane

  • Sr. Member
  • ****
  • Posts: 349
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: Troubles with conditional hide filter.
« Reply #1 on: February 20, 2024, 06:00:02 PM »
Does it need to be a string?  (Are you thinking of filters, maybe?)

Are your variables in scope or do you need to get session values?

Check the bottom of page 182 of "Developing Web Applications with NetTalk - Fourth Edition."

jking

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
    • Email
Re: Troubles with conditional hide filter.
« Reply #2 on: February 20, 2024, 06:55:15 PM »
Hi Jane,

     That was it, I needed to be using the session values.  So, I have two fields to hide.  I needed to use both of these in each Hide Condition like this:

p_web.GSV('CRF002Rad:Recommend_RT_PBI') <> 'Other' AND p_web.GSV('CRF002Rad:Recommend_RT_WBI') <> 'Other'


Thanks as always!

Jeff