NetTalk Central

Author Topic: Hide in Source code  (Read 2879 times)

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Hide in Source code
« on: June 14, 2013, 01:32:39 AM »
Hi Bruce

What is the code to hide and unhide fields in source code in a netwebform.

Regards
Johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Hide in Source code
« Reply #1 on: June 14, 2013, 01:56:10 AM »
assuming the field has a "hide condition", and you are changing the values that affect that condition, and so you want the field to refresh itself;

do Refresh::FieldId

where FieldId is the Use Equate for the field.

I'm also assuming this is during some asynchronous update to the form, not during the initial form generate.

cheers
Bruce


johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Re: Hide in Source code
« Reply #2 on: June 14, 2013, 02:45:58 AM »
Hi Bruce

The field has no 'hide condition" without any values, in my source code I want to set certain "hide condition" to hide or unhide the field before the screen opens. I need to know how to do the hide condition in source and which embed-point to use.

In windows apps I use it as

  hide(?fil:name)
  Display(fil:name)
or
  unhide(?fil:name)
  Display(fil:name)

How do I use it in the web apps source?

Regards
Johan
« Last Edit: June 14, 2013, 02:50:09 AM by johanco123 »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Hide in Source code
« Reply #3 on: June 14, 2013, 03:29:11 AM »
you're not talking about a "Hide" condition, you're talking about an "Include" condition.

If you want to be able to hide, and unhide it, you need to use a hide condition.

If you want to exclude it from the form completely then use an "Include condition".

If you want to hand-code the equivalent of either then I recommend putting something into the template setting, like say XAXA, and then doing a right-click, "source" on the procedure, then search for XAXA to see how it is used.

cheers
Bruce