I am newbie with sharepoint, struggling but finding my way.
I have created a list and created a new form called NewFormRequest.aspx in SharePoint designer.
I am calling this form in the browser:
\List\MyList\NewFormRequest.aspx
Which is ok.
I have a column there named Requested user: This should be a label, which I did and the question is when this forms opens I should be able to set the user who opens the forms. Where and how can I do that?
I googled and find some code on web like:
SPSite oSiteCollection = new SPSite("Absolute_URL");
But I don't know where the code-behind file (*.aspx.cs) is so where to put this C# and more code?
- I like to add javascript code for styling the form (hide/show) etc. So, I opened the "NewFormRequest.aspx" in SPD but where do I put javascript code?
I mean I just pressed Space bar key and it added a tag < WebPartPages:WikiContentWebpart in the "NewFormRequest.aspx" and I put the javascript code between this tag, it worked. But is this the place where I put my javascript xxxx code?
so several questions.