Just make sure that you have a valid selection stored in "value1" - if
this list is empty, that error may occur.
Something like

try
{
var value1 = field.getValues();
IDVault.globalQuery( "ADGroupList", "InternalResourceCustomQuery",
{"internalad":form.getValue("ADGroupSearch")});
if ( value1.length > 0 )
{
field.setValues( value1, value1, true)
field.select( value1 )
}
}
catch ( e )
{
alert( e );
}

In a previous post I have sent you a guide to debugging such scripts
which might help you troubleshooting.

Wolfgang


On 18.07.2012 14:26, lvaradha wrote:
>
> Hi,
> Any idea on this Error?
>
>