Assist to get the ajax form to work properly

Assist to get the ajax form to work properly

  
Please help with the attached form, i need it to automatically add a new line every time i add information to the current line. I have tried all the tricks i could think of and it doesn't work.
Hi,

I believe you need to change the If condition to ItemLineTable.List.CurrentRowNumber = ItemLineTable.List.Length - 1




Cheers,
Tiago Simões