Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9146

Formcalc - changing value of the text field

$
0
0


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!


Viewing all articles
Browse latest Browse all 9146

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>