Default Value in a Dropdown list

C

craigs714

Is there a way to set a default value in a dropdown list that uses a
Web Service or Sharepoint List as it's data connection. It is clear
how do it when you type the list yourself in the wizard but not as
clear as stated above.

Thanks in advance,

Craig
 
M

maor110

I'm not using a Web Service but I think it's nearly the same solution.

function XDocument::OnLoad(eventObj)
{
var defaultcbo = XDocument.DOM.selectSingleNode("/my:Fields/my:cbo");
defaultcbo .text =
XDocument.DataObjects("YourSource").DOM.selectSingleNode("//YourSource/cboField").text;
}

hope it works.
 
Top