Can anyone help please with Javascript. 2 small problems.

Hello. I created a dynamic PDF form with fields. I have 2 problems that I don't know that someone can help me with. (Someone I can email this PDF on request).

PROBLEM 1. In this form, I have a table (in fact I think that it is a form of sub) which has 3 buttons associated with it ('Add Row', 'Delete Row' and (line Clear').) A single button adds a new line. It works, but effectively, it duplicates the line (and all the fields/cells of text contained in the line) and this new line at the bottom of any existing lines. What I'm asking, is for this button (the button gets duplicated with the line) to place the new line immediately below the line where it is clicked. That is to say, imagine you open the document, complete line (at this stage it is only) and click on the button 'Add Row '. You now have 2 rows (large), while you complete the second row. Now, here's my problem, if you press the button "Add a line" on the first line, a new 3rd line is added at the bottom and not between line 1 and line 2.

Actually if you have dozens of lines filled and you need to insert a line of amendment, currently it is impossible without deleting all the lines to the point where you want to check/insert.

PROBLEM 2. In this line of alphanumeric text, the are two fields (called "Rate" and "Loading") where dollar amounts are entered. As the form is filled (lines can be generated dynamically and there fields filled out manually by the user) there may be potentially dozens of lines in a completed form and, as each line has several fields of alphanumeric text, one can imagine of forming columns once there is more than 1 line. At the end of the form, the totals are automatically calculated. I created a button to reset (clear) all amounts in these two specific areas (columns), but in all ranks. Unfortunately there is something wrong with my script syntax like this button does not. (I want this facility as the end of the form, which is a draft budget, I need to send two copies - one accountants with numbers and logistics and a second copy to another Department that I don't want to give the figures, so I need the key to clear the numbers without having to erase each cell individually).

Any help that anyone can give would be much appreciated.

Please send me an email to

[email protected] If you want I send you the file.

See you soon

Bradd

Send the form to

[email protected] and I will give it a go... include a reference back to this forum announcement.

Paul

Tags: Adobe LiveCycle

Similar Questions

Maybe you are looking for