Expand my Community achievements bar.

creating rules in script for

Avatar

Level 1

I am trying to create an estimate form with backend rules script using criteria based on user selecting product from drop down menu.

Here is sample what I am trying to do and hopefully it makes sense.

Field1 x Field2= sum1  (which i  figured out)  Sum1 is new field

drop down menu with 3 products:  if the user selects product1= unit price of $5.00    product2=unit price $7.00   product3=unit price $8.00(setup if then rules)


Next:

if the product 1 is X sum amount =>500 price is $10 or =<500 price is $15   This (sumtotal price unit ) x (sum1)  x (qty# )= total

There are 4 qty entry boxes.

There are 4 different drop down menu boxes.

Can this be done in Livecycle design?

Thxs

1 Reply

Avatar

Level 2

If you are planning to add javascript in LifeCycle Designer here is the hint.

You can have following event on dropdownlist to get the value.

eventName:exit

app.alert(this.rawValue); //which retunr the selected value in DDL.

xfa.resolveNode("Field1").rawValue =this.rawValue or "$10";

Hope this will help you.