Properly split form fields across report rows?

Properly split form fields across report rows?

Hi all,

I’m trying to split file uploads from a form into separate report rows with a shared Title. Example:

  • Form input: Title + File A + File B

  • Desired result:

    • Row 1: Title + File A

    • Row 2: Title + File B

Current Logic:

  • In On Created or Edited and On Success, I:

    1. Use insert into to create a new record (Title + File B).

    2. Use updateRecord to remove File B from the original, so it keeps only File A.

Problem:

  • This creates three rows:

    • Record 1: Title + File A

    • Record 2: Title + File B

    • Record 3: Title only (unexpected)

  • Editing any row later creates two more rows like the last one (title only).

When I use the same script only in On Created, it works fine—just two rows as expected. But, I don't want to solve it this way as I'd like to allow users to start with one file and add the second later via edit, but end up with only two total rows.

Questions:

      --> What is really going on with the Deluge logic? How can I avoid the extra rows, both initially and on edit?

      --> Would a setup with a subform for dynamically adding in any number of files (also when editing) be workable in Zoho, and if so, do you have any tips on how to approach this? I am feeling very confused...


Any help would be appreciated. Thank you for your time.