on 12-12-2013 2:44 PM
Hello,
please help me to solve this easy question.
I have 4 different fields with binding to the same element from interface, e.g. bindElement.
I need to hide these fields in case bindElement = Null and change values in case bindElement <> Null.
I'm using Formcalc:
For field 1:
if(HasValue($) == 0)
then $.presence = "hidden"
else
$.rawValue = "Field1"
endif
For field 2 (it should display value of bindElement😞
if(HasValue($) == 0)
then $.presence = "hidden"
endif
For field 3:
if(HasValue($) == 0)
then $.presence = "hidden"
else
$.rawValue = "Field3"
endif
Now if I' changing Field 1, all fields getting value "Field1". And its wrong. Can I use rawValue or do I need another command?
Thanks!
If you use Formcalc you do not have to use rawValue, you just can put the input into the variable.
An example:
if( HasValue($) eq 0) then
$ = "hidden"
else
$ = "Field3"
endif
Regards
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can directly write FormCalc as shown below:
if(HasValue($) == null)
then $.presence = "hidden"
else
$.rawValue = "Field1"
endif
---
Naveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.