This project has moved and is read-only. For the latest updates, please go here.

dynamically set title field value in newform.aspx

Nov 2, 2010 at 3:37 PM

I just found the SPServices library and wanted to identify a how to perform a simple procedure. I have a list with a [Title] field and a [Task Order:TO Number] lookup field. When the user selects a Task Order # in newform.aspx, I want to query the original [Task Order] list using the selected value and return the [Task Order:Title] and set the new list items [Title] to that value. Does anyone have a quick code snippet on how to do this?



Nov 3, 2010 at 2:32 AM


You can use GetListItems for this. There are a couple of examples in the documentation here. Take a look and let me know if you have specific questions.