get maxvalue qty based on stock
hello, I want to set on from specific qty stock based on what the user chooses in but as we know isn't chosen yet by the user and make the got an error
How could i tackle this problem?
Thank you so much!
Solution:Jump to solution
oh I'm so sorry, i already found the answer
```->maxValue(function(Forms\Get $get, $record)
{
if (!empty($record)) ...
5 Replies
You could disable the field until the user chooses from the select.
Hello! Thank you for your response, I appreciate it!
I use this but still not working
What is not working? What’s the errror you get?
i got this
error shows when trying to create where inventory_id is not selected
Solution
oh I'm so sorry, i already found the answer
Thank you so much for your help! @Dennis Koch