0
我正在嘗試爲Salesforce創建一個Web到Case的表單,並且需要製作自定義案例字段。我將代碼添加到我的html頭部,並且它不工作。表單也不會提交。Salesforce web到案例所需字段
<html>
<head>
<script language="JavaScript" type="text/javascript">
function checkform (form)
{
var name = document.getElementById('00NC0000005KA85').value;
if (form.name.value == "") {
alert("Please enter your full name.");form.name.focus();
return false ;
}
return true ;
}
</script>
</head>
<body>
<form action="https://www.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8" method="POST" onsubmit="return checkform(this);">