2024 年 12 月のアップグレードより前のバージョン Xanadu 次のコードを使用します。
function onLoad() {
function getParameterValue(name) {
var url = top.location.href;
var value = new URLSearchParams(url).get(name);
if (value) {
return value;
}
return false;
}
if (this && this.location && this.location.pathname) {
if (getParameterValue("email")) {
g_form.setValue("email", getParameterValue("email"));
g_form.setReadOnly("email",true);
}
}
}
2024 年 12 月のアップグレード以降のバージョン Xanadu 次のコードを使用します。
function onLoad() {
function getParameterValue(name) {
var url = top.location.href;
var value = new URLSearchParams(url).get(name);
if (value) {
return value;
}
return false;
}
if (this && this.location && this.location.pathname) {
if (getParameterValue("email")) {
g_form.setValue("email", getParameterValue("email"));
g_form.setReadOnly("email", true);
}
if (getParameterValue("supplier_name") && (getParameterValue("supplier_name") != "null")) {
g_form.setValue("u_supplier_name", getParameterValue("supplier_name"));
g_form.setReadOnly("u_supplier_name", true);
}
if (getParameterValue("relationship_contact_email") && (getParameterValue("relationship_contact_email") != "null")) {
g_form.setValue("u_relationship_contact_email", getParameterValue("relationship_contact_email"));
g_form.setReadOnly("u_relationship_contact_email", true);
}
}
}