on 06-27-2014 2:34 PM
Hi,
With a condition you can hide the contents of a field but it seems you cannot hide the caption.
What is the workaround for this as I would like the whole field to disappear.
Regards
Hello Koenraad,
Wrap the whole field in a sub form. Then write the condition on the sub form itself. So when the condition is true, the whole sub form is hidden and the complete field with the caption and value will be hidden.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if (CONTACT_FAX.rawValue == null) {
this.presence = "invisible"; }
works...
The syntaxcheck is just completely worthless
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There must be something horribly wrong with my syntax as even the following doesn't work
var x = 5;
var y = 5;
if (x = y) {
this.presence = "invisible";
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
it seem you got the answer, but i think it is really worth to have copy of this two PDF from Adobe, there are like a light in your way to master your self in Adobe Form Syntax.
http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
LiveCycle® Designer ES Scripting Basics
http://help.adobe.com/en_US/livecycle/8.2/LiveCycle_Designer_Scripting_Basics.pdf
Second book provides Java and Form Calc codes beside each-other.
Hope you find them helpful.
Regards,
Still busy on it.
if ( $.SUBFORM_CONTACT_FAX.CONTACT_FAX.value == NULL ) then
$.SUBFORM_CONTACT_FAX.presence = "hidden"
endif
clearly didn't work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My initial attempt was with a context condition. Which hides the content of the field but not it's caption. But I get now that I should use a script in layout mode. (im a virgin in adobe forms.. it's my first )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How did you hide the content? if you are doing this with code in condition rules you can invisible the whole field with such code:
fieldname.presence = "invisible"
hope this helps,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do you visualise the subform in the context tab in order to put a condition?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.