cancel
Showing results for 
Search instead for 
Did you mean: 

Condition isn't working in form calc

Former Member
0 Kudos

hi expert,

when I click the condtion

if  ($.parent.ASSEM_PROFIL == "Z200") ||  ($.parent.ASSEM_PROFIL == "ZA20") then

$.presence = "hidden"

else

$.presence = "visible"

endif

Why the condition is not working?

Is there a problem syntactically?

Best Regards

ami

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Ami,

Please try this

if  ( ( $.parent.ASSEM_PROFIL == "Z200" ) OR/AND ( $.parent.ASSEM_PROFIL == "ZA20" ) ) then

$.presence = "hidden"

else

$.presence = "visible"

endif

Instead of symbol II please try using 'OR' or 'AND' as required without quotes. Make sure that the language is Formcalc not javascript.

Rgds,

Nitin.

Answers (1)

Answers (1)

former_member230486
Contributor
0 Kudos

Hi,

Check in the Script editor whether the Language is FormCalc or not.