Rest Values of some columns based on other columns

LLD
Silver 2
Silver 2

Hi,

While making entries for movement of stock in and out of inventory, I usually face two situations - 

#1 New Stock is being added to the inventory, with related invoice details (in which case column TypeofEntry = "Invoice")

#2 Stock is removed from the inventory, for use in the manufacturing process (in which case column TypeofEntry = "Others"). Side note - It is possible that Stock not used that day in the manf process could be returned to the main stock (in which case again, column TypeofEntry = "Others")

For situation #1, in addition to other data (e.g. Qty being added/ removed), I also capture Invoice#, S#, Price Per Unit & Line Sub Total (i.e. Qty x Price Per Unit)...

For situation #2, I use the Show If & Required If features to hide/ suppress these 4 columns.

The problem arises when a user mistakenly sets the TypeofEntry = "Invoice", and adds Invoice#, S#, PPU & LST..... then realises his/ her mistake and changes the TypeofEntry to "Others". At this point, the data entered under Invoice#, S#, PPU & LST is not reset, rather, it persists. This causes big problems when I am filtering or summing up data using those 4 fields, as those rows too, appear in the results.

Is there anyway to automatically clear those 4 columns/ reset the data, when TypeofEntry is changed from Invoices to Others?

Solved Solved
0 2 121
2 ACCEPTED SOLUTIONS

You kinda have 2 options.  You could either setup a ResetOnEdit formula to check and potentially reset these every time that [TypeofEntry] is changed.  Or you create an action to reset those columns and set it as the Form Saved action on the System Form view for that table.

https://support.google.com/appsheet/answer/10106509?hl=en

https://support.google.com/appsheet/answer/10108214?hl=en

Simon@1minManager.com

View solution in original post

LLD
Silver 2
Silver 2

Thank you Simon, I shall try these out.

View solution in original post

2 REPLIES 2

You kinda have 2 options.  You could either setup a ResetOnEdit formula to check and potentially reset these every time that [TypeofEntry] is changed.  Or you create an action to reset those columns and set it as the Form Saved action on the System Form view for that table.

https://support.google.com/appsheet/answer/10106509?hl=en

https://support.google.com/appsheet/answer/10108214?hl=en

Simon@1minManager.com

LLD
Silver 2
Silver 2

Thank you Simon, I shall try these out.