Pregunta

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.

¿Fue útil?

Solución

You need to read the customArguments property on the dialogArguments:

document.write(window.dialogArguments.customArguments.fieldValue);
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top