I currently have a list form that I am included custom fields on. I'm using jquery to store the values.
To store the values I've create a function that will be called when the Save button is clicked. The issue I'm having is when I debug the code in the browser it gets the SubmitForm function and the values are stored to hidden single line of text fields (out of the box sharepoint fields).
When I open the item in display or Edit the single line of text fields never retain the value.
What can I do to make sure the field hold the value and the form is saved?
SubmitForm function
SubmitForm = function() {
var resVal = $('input:radio[name="EventSet"]:checked').val();
var resCat = $('.Category option:selected').val()
if (resVal != undefined)
{
$('input[title="ResField"]').val(resVal)
}
$('input[title="ReservationCategory2"]').val(resCat)
}
Onclick Event
$('body').on('click', 'input[value="Save"]', function() {
SubmitForm();
}
reseVal
vsresVal
?ResField
andReservationCategory2
SharePoint . When I click save it should set the values to the single line of text fields, but when I look in edit or display the fields remain blank and don't have the value. Also the variable up here is type on my part.