scala - Passing selected value of a select to form action -
i have menu want differ based on account selected in system. i have page allows user select account html select. when user submits form account selection page want call menu method on controller passing in selected value url looks correct. here existing template page allows user select account: @helper.form(action = routes.accounts.menu { <table> <tr> <td><select id="accountnames"> @accountnames.map { name => <option value="@name">@name</option> } </select></td> </tr> <tr> <td> <p> <input type="submit" value="choose"> </p> </td> </tr> </table> } from routes file: get /account/:accountname/menu controllers.accounts.menu(accountname: string) ...