When putting different percentages, it is still possible to exceed in the same LINE 100%.
Therefore it should NOT be possible to exceed 100%, this means that it should not be possible to enter more then 100%. Would it also be possible that the last result calculates itself, this means for example when you enter for BOX1 30%, for BOX2 30%, for BOX3 30% that then for BOX4 it appears automatically the resting amount until 100% (in this case 10%)?
Thanks a lot!
for this task you need an algorythm that checks several parameters.
First the minimum and maximum values (0 and 100).
Then you need to know, what values the other fields have and how many of the range from 0 to 100 is still available now.
Finally you have to control if your input is not less than the minimum value or more than the maximum value and the available value.
Sounds complicated, isn't it?!
It isn't. You can realize this with a few lines of FormCalc in the exit events of your nummeric fiels.
Example form:
[url]https://acrobat.com/#d=FcnjwQ-7ia0hmRYCy1OAlw[/url]
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs