NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: johanco123 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
-
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
-
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
-
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