I'm using MVC.
I have this method inside my Home (index page) controller
public IActionResult Requestservice()
{
return View();
}
There is a page dedicated to each service the website is offering. When the client clicks a button called "Request service" in the "Barbecue" page,
The expected behaviour would be:
- Open the form page where the client inputs contact/ residence information
- Have the "Barbecue package" pre-selected from a dropdown list where they can select the kind of service they want.
Instead, the current behaviour is:
- Client clicks "Request service" button on the Barbecue page.
- On the form page, the selected option is the first item written on the
<ul>
code block in html.
HTML snippet on the RequestService.cshtml page
(...)
<select class="form-control" id="exampleFormControlSelect1">
<option>Pack Complete (€34.99/pax)</option>
<option>Pack Barbecue (€9.99/pax)</option>
</select>
(...)
This is what the button looks like on the Barbecue.cshtml page
<a class="btn btn-primary" href="RequestService">
Request Service
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
So, again, when I click the button Request Service on the barbecue page, how can I make it so that the default selected is "Pack Barbecue" and not "Pack Complete"?