# Form Submit - don't allow submitting when there is not enough in inventory

**URL:** <https://forums.knack.com/t/form-submit-dont-allow-submitting-when-there-is-not-enough-in-inventory/7505>\
**Category:** Ask Developers\
**Created:** [November 12, 2016, 4:51pm UTC](https://forums.knack.com/t/form-submit-dont-allow-submitting-when-there-is-not-enough-in-inventory/7505 "2016-11-12T16:51:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArturRynki32692](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@ArturRynki32692](https://forums.knack.com/u/ArturRynki32692)\
**Post date:** [November 12, 2016, 4:51pm UTC](https://forums.knack.com/t/form-submit-dont-allow-submitting-when-there-is-not-enough-in-inventory/7505/1 "2016-11-12T16:51:40Z")

</div>

Hi

my problem is simple inventory. Tried to figure it out by searching posts, but still cannot find the solution.

I am adding an order. In form of the order I need to chose product (from parent inventory), input the amount and _**check if it is available in inventory (connected object).**_

I tried equation - created actual\_inventory in parent's object (inventory) and used in child's (order) - but it doesn't work, because when I chose the product knack does not read the inventory online.

I tried form validation - but it cannot chceck the conneted objects

Jquery - I tried looking but I am not sure which script to use.

Can anyone help or tell me where to look for?

Artur
