문제

I am building a Custom html form and saving all the fields to a SharePoint Online list. I figured out adding text boxes and choice drop downs via JS/jQuery like,

var xxxxxxxx = $("#xxxxxxxx").val();

var yyyyyyyy = $("#yyyyyy").find("option:selected").text();

but can't figure out how to add HTML Checkbox (Yes/No) to a SharePoint Yes/No column.

Please suggest.

Thanks

도움이 되었습니까?

해결책

For SharePoint Checkbox (Yes/No) column, it sholuld be $("#checkboxId").is(':checked').

As you can see the picture:

enter image description here

If you want to set the check box field value, it should be like this:

 $("#checkboxId").attr('checked', true)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top