I am connecting to a Custom URL on a component field which contans the following code
function SaveAndClose()
{
var newValue = new Array();
newValue[0] = "/feed.ashx?type="+ $("#Type").val() + "&user="+ $("#User").val();
window.returnValue = newValue;
self.close();
}
document.write("Current Value:");
document.write(window.dialogArguments.fieldValue);
The SaveAndClose Function works perfect and sends the value back to the component, but window.dialogArguments.fieldValue always returns undefined.
You need to read the customArguments
property on the dialogArguments:
document.write(window.dialogArguments.customArguments.fieldValue);