Single Form "Add" = 2 Records?

Hi all. I built a simple app for my kids allowances. For each task/chore they do, they get paid. However weโ€™re trying to teach them about taxes, so we also have a tax โ€œaccountโ€ where we plan on carving off a small percentage of their allowances towards family things (voted on). Net-Net, Iโ€™m trying to see if thereโ€™s a way of submitting their payment, but on the backend splitting it into two records (Google Sheet), part of it towards the Tax account and the other part towards their account (4 kids, checking/savings โ€œaccountsโ€). Doesnโ€™t seem like this is possible? Right now I basically put in 2 records and do the math myself (ex: 25 cents their account, 8 cents Tax account).

Another related question is transfers between โ€œaccountsโ€. We also trying to teach them savings accounts and the benefits of it. While interest rate is on the todo list (), today it requires two entries against the โ€œLedgerโ€ sheet that records all transactions (ex: -5 savings, 5 checkingโ€ฆ the ledger sheet has simple timestamp, account holder, account, amount, and memo). Would love to have a similar โ€œsingle entry = 2 backend recordsโ€ to maintain the ledger (preventing fat fingering on my part).

For now Iโ€™ve got workarounds, but would love to add some more functionality to Bank of Dad.

0 4 124
4 REPLIES 4

Steve
Platinum 4
Platinum 4

Thanks. I saw those, but they donโ€™t seem to support my specific usecase. Basically in the UI (form) I want to add one payment, and then do a man in the middle attack against that value, to do one of two things:

  • Applying part of the transaction to one account and another part to a different account, all against the same sheet (Tax). โ€œAccountโ€ in this respect is just two different values in another column.
  • Add two records based on the transaction value (a positive and a negative) to different accounts (aka Transfer).

Either way, the value I put into the text field, I donโ€™t want it to just pass in as-is to the backend Sheet. Hopefully that makes sense.

There is no way to accept input and not write it to the data store. Youโ€™ll have to work around that constraint.

Appreciate the quick response. Thanks!

Top Labels in this Space