5 Answers, 1 is accepted

Hello Bas,
At present, there is no built-in support for hidden fields. For a hidden field value to be sent on form submission, it can be appended to the form with jQuery, e.g.:
$(document).ready(function () {
$('form').append("<input type='hidden' data-bind='value: Description' name='Description' value='123' />");
})
I've logged a feature request on your behalf in our Feedback Portal: https://feedback.telerik.com/aspnet-core-ui/1469243-add-support-for-hidden-fields-to-the-form
Regards,
Ivan Danchev
Progress Telerik
Our thoughts here at Progress are with those affected by the outbreak.

Thanks Ivan. I finally got a chance to test your suggestion, and it worked fine.
I ended inserting the forgery tokens and the other hidden fields this way:
$(document).ready(
function
() {
$(
'*[name*=RequestVerificationToken]'
).each(
function
(index) {
if
(index === 0) {
$(
"#facilityForm"
).append($(
this
));
}
});
$(
"#facilityForm"
).append($(
'@Html.HiddenFor(m => m.Id)'
));
}
Thanks Bas. This worked for me, once I put a trailing ')' at the very end. Should need to do this, it should just work out the box.
Andy
Hello Andy,
Consider casting your vote for the previously linked feature request: https://feedback.telerik.com/aspnet-core-ui/1469243-add-support-for-hidden-fields-to-the-form
The more votes it acquires the higher its chances are for getting approved for implementation.
Regards,
Ivan Danchev
Progress Telerik
Our thoughts here at Progress are with those affected by the outbreak.