?
Solved

Sharepoint & Javascript Form Field Autocomplete

Posted on 2012-09-04
2
Medium Priority
?
984 Views
Last Modified: 2012-09-20
Hello,

I have been trying to create a custom form on Sharepoint Designer (2007) for a list on our sharepoint site.

The list has a series of customised forms that list out different fields for the appropriate users to complete.

A simple example:
End user will click on add new entry, will get a  customised form that collects information for feilds 1,2 & 3.


Sp workflow sends an email to responsible team containging a link to form #2


Responsible team follow link to form # 2 - which contains fields 1,2,3 as text and 4,5,6 as input values


So Form # 2 as in the example above is what is in question here, and is a custom sharepoint form created using SPD.

I need the data completed field (Field 6 ) to auto complete to todays date. But as the list entry was added by the end user in the first point, I can't use the sharepiont default field values.

therefore I've seen the method of using javascript here: Javascript in Sharepoint

I assume this code needs to be inserted into the source code of a content editor web part to work, but can't see how I get the <<FIELD DISPLAY NAME>> and <<QUERYSTRING VARIABLE NAME>> from sahrepoint designer.

Also id rather just use todays date than passing values through the url for this purpose - which I assume is possible.

If anybody knows how to find these elements, can confirm that the approach is correct and / or knows how to adjust the script so that using the URL is avoided your help would be much appreciated!

Thanks
0
Comment
Question by:bedsingar
2 Comments
 
LVL 83

Accepted Solution

by:
leakim971 earned 1500 total points
ID: 38369245
0
 

Author Closing Comment

by:bedsingar
ID: 38419503
Thanks for the links the top one explained what I needed.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to implement server side field validation and display customized error messages to the client.
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question