Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

livecycle form conditional calculation

Avatar

Level 3

Hi,

I have 3 fields, say A,B n C. if A= less than 10 then B n C will be 0. how can i make this coce.

thanks

Ali

4 Replies

Avatar

Level 7

if(a <= 10){

b.rawValue = "0"

c.rawValue = "0"

}

Avatar

Level 3

hi,

not working. showing error. i insert it for a and show= ca;calculate, language= formcal.

thanks

Ali

Avatar

Level 7

the syntax is different for formcalc. change your language to JavaScript also in the script "b" and "c" have to be replaced by the actual field names.

Avatar

Level 3

it is working. i am sending u file to ur mail.

thanks

Ali