Dear All,
I just started using LiveCycle a couple of days ago. Spent a tremendous amount of time reading litteratures and several websites.
I am stuck on something that apparently is extremely simple:
I have a form with 2 subforms. In my 2nd subform, I have 2 tables and a bunch of fields (address fields mainly).
The 1st table is products and quantities.
The 2nd table is subtotal, taxes and total.
I wanted to use the IF expression to condition my taxes:
IF the value if the cell called "ShippingState " = CA, then I apply taxes
else no taxes.
Simple enough.
I thought this would work:
if ( form1.#subform[2].ShippingState = "CA" ) then Subtotal * 8 / 100
else 0
endif
I doesn't work with or without the " " aroudn the value of ShippingState.
There is no typos in the names of the cells.
Subtotal is the adjacent cell to the one I added this expression
Could anyone explain what I am doing wrong? It would be greatly appreciated.
All the bes,
Damien
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Damien,
There are a few things to watch out for:
if (shippingInfo.ShippingState == "CA") then
$ = Subtotal * 8 / 100
else
$ = 0
endif
I suspect that the ShippingState and the Subtotal are in different subform, but in the same 'form1', therefore you should not need 'form1' in the reference.
Hope that helps,
Niall
Views
Replies
Total Likes
Hi Damien,
There are a few things to watch out for:
if (shippingInfo.ShippingState == "CA") then
$ = Subtotal * 8 / 100
else
$ = 0
endif
I suspect that the ShippingState and the Subtotal are in different subform, but in the same 'form1', therefore you should not need 'form1' in the reference.
Hope that helps,
Niall
Views
Replies
Total Likes
Niall,
Thank you for your help.
Glad to see all the information and I will definitely keep that handy.
Best regards,
Damien
Views
Replies
Total Likes