Hello everyone from Accra Ghana.
I've a small issue I'm not sure how to go about.
I've a number of companies in the database. What I want to do is create a form with just a select field containing the companies in the database, and naturally a submit button to post the form to a controller. How do I use the Autocomplete widget outside of SQLForm? Is it even possible? If not, how do I represent the list of companies in HTML in a way that the user will not have to scroll endlessly to select a company as would be the case with a traditional HTML select?
Also every company entity in the database has a boolean field, 'is_default', now how do I make sure only one company has 'is_default' set to True? So all others have it as False? Also if upon inserting or updating a company, the new or updated record has 'is_default' set to True, then I want to set that of all other companies as False.
Thanks