Currently, I have a form that is used to display personnel information and allows for updating and saving changes to my database. You can view the form below:
https://i.sstatic.net/ShRQ8.jpg
Updating the fields connected to textboxes poses no problems. However, when it comes to the HTML select list (dropdown), I encounter issues with saving the newly selected value.
NOTE: Making changes in textboxes and then altering the selection in the dropdown results in successful saving of the form except for the select list changes. There are no apparent failures during this process.
No errors are being reported, but I have noticed an additional OPTIONS request before the PUT operation, which puzzles me. Any insights on this matter would be greatly appreciated.
Below is the structure of my form:
<form name="personForm" novalidate ng-controller="PersonnelEditCtrl as vm">
<fieldset class="col-md-4">
<legend>Basic Personnel Information</legend>
... (form fields continue)
The issue arises specifically with saving the selection from the 'Payband' dropdown menu. Here's the relevant AngularJS controller code snippet for reference:
angular.module("personnelService")
.controller("PersonnelEditCtrl",
PersonnelEditCtrl);
function PersonnelEditCtrl(personnelResource, paybandResource, $filter) {
... (controller logic continues)
If you require any more details or clarifications, please feel free to reach out. Your assistance in resolving the dilemma of saving the chosen option in the select list would be highly valued. Thank you for taking the time to review and potentially offer guidance!