Forced to go through "submit" button

In a medication inventory management application for my practice, the “submit” button conflicts with a button I created to update the inventory. So to fulfill its function, I must first press the “submit” button (to validate?), then come back and press the “stock update” button. How can I validate my operation without having to go through the “submit” button?

If I were you I’d keep updates via an edit screen and adds via a form screen separate. It’s safer to keep things separate.


But i already have a edit screen and a form screen.

Would you be okay with removing the button “Stock update” from the edit screen?

Thanks for your answer.
I thought about removing “Stock Update” button and only use submit button (with Data >> Set colums Value) but i would like add an action (open an pop up screen when the stock value is “0” to purpose erase item) and for that, i need a button. I can’t do it with “submit” button.

I don’t understand exactly what you want to do, but I recommend you keep things simple: don’t add an extra button inside an add or edit screen. Just don’t. On the add or edit screens, include entry fields, if need be a few titles and images, and that’s it. You’ll stay out of trouble that way.

Thanks again.
My project is simple. I have an Excel sheet that contains all of my medications (I work in a medical office).
I want to create an application that does 3 things:

  • Update the stock after indicating the number of medications taken.
  • Suggest deleting the item when there are no more medications.
  • Send me a notification when the expiration date has passed.

That’s all.

Edit screen

Collection item actions with a condition “if stock = 0”.

You can add a hint text component. For a true push notification on your phone, you’ll need to wait until the workflow features is released in November or December, and you’ll need to be on a plan that allows you to use that feature.

You just helped me a lot.
A sincere and big thank you for your time and patience.

Mathieu.

1 Like