Replies: 3
I would like to populate a field with the sum of quantities from a previous submission. In the test page, you can see that clients enter the number of full and/or small plates they are ordering. I would like to populate 2 fields with the total (sum) of previous orders that were submitted for large and small plates.
For example, 12 large plates and 3 small plates were previously ordered. Can I pre-populate those number fields with this sum so I can disable further ordering after a certain threshold. I can do this easily with conditional visibility logic based on the summation fields but I cannot figure out how to pre-populate the sum of previous submissions fields.
Can you help? Hoping that you have some mu-plugin code that can be modified to do this. See test URL and I have also exported the test form.
https://drive.google.com/file/d/1EbPVXA6HLb3XWD5piZtqbNJUjFBH_aBR/view?usp=sharing
Thank you.