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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top