i want to set the selected SPList Title value when show the NewListForm.aspx using SP.UI.ModalDialog.showModalDialog(), could anyone help me to resolve this issue please?
1 Answer
In showModalDialog you can pass arguments that get passed on to the dialog.
If you would pass the title as an argument, then modify the NewListForm.aspx slightly using SharePoint Designer to add javascript functionality that would take that argument and put it in the Title field.
-
Hello Jussi Palo, i am not asking about the popup window title, i have one list, this name is List1 and List1 has 5 columns like Title, Date, Currency, Created, Modified, i want to set Test as Title for List1 when show the NewForm.aspx using SP.UI.ModalDialog.showModalDialog(), could you help me please Commented Jan 25, 2012 at 9:14
-
Yes, I'm also talking about the title field of the item you're showing in the dialog - not the title of the dialog. You would populate the Title textbox with the value that you pass as the argument. Commented Jan 25, 2012 at 13:22