Try this....you are just missing one '=' in the test condition on the second elseif.if ((Items[36] * .05) < 25) then Totals = 25 elseif ((Items[36] * .05) > 25) then Totals = (Items[36] * .05) elseif ((Items[36] * .05) <= 0) then Totals = 0 endif
I have answer for the first question....all you need to do is copy the following JS code to enter event of each field that you have trouble with.var acroSOM = this.somExpression.substr(15, this.somExpression.length - 1); var acroField = event.target.getField(acroSOM); acroField.doNotScroll = true;I ...
I have no idea how your table is defined, layout. With the example in my previous reply you could code the calculations on your own. If you still have difficulty email me your form template at 'meetsekharv AT yahoo.com' for additional help.
You need to set Binding value for each of those fields in the Binding tab of Object palette to get the data value from XML schema. Review the documentition on Binding.
What you are trying to get may be as simple as doing some math. However that calculations should be event driven. I prefer not to use Calculate event on any field as it gets triggered in the form initialization process and may cause issues.Best events could be 'change' or 'exit'. And have to code on...
Some times those Palettes overlap with other so make sure you drag the borders to see entire Object palette and Control type is displayed in three radio buttons (Regular, Execute, Submit). It is same for all versions of LC so far.
There are two ways to deal with this.....1. Set the control type to Regular in Object Palette for the email button and use the following JavaScript code in 'click' event of the button.event.target.submitForm({cURL:"mailto:emailaddress@company.com?subject=Newform&body=Fill the form and click on email...
By Default all Master Pages are set to display at least One time. However you can set min occurrence value to 0 in Restrict page occurrence in object pallet. Also you may have to use xfa.layout.relayout() after you complete all other actions that hide the body page layout.
Here is the code to load any attachments...you may have to tweak little bit.//predefine the file identifying name local to this instance of //the form. May have to increment the number to keep it unique and //to attach more files. This is not the same name of the file //that you selected in the dial...