AnsweredAssumed Answered

How to load dropdown from database given team_id on Quote

Question asked by Blair Buxton on Dec 6, 2019

Sugar 8.0.2

We have a dropdown on the Quote page that would load values specific to the team on the quote.   We were using a custom hook that passed in the account_id and loaded the list from the database give the team_id.

 

This was broke after upgrading to 8.0 because the account_id was no longer passed to the custom function.

 

I have read many old posts, and scanned for hours over Sugar documentation but cannot find a best practice for doing this in the newer versions of Sugar.

 

We need to load a dropdown at runtime given the team_id of the account.  Could someone share code examples of the best way to go about this? (please and thank you)

Outcomes