Question

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.

Was it helpful?

Solution

You need to read the customArguments property on the dialogArguments:

document.write(window.dialogArguments.customArguments.fieldValue);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top