Populating
I need to be able to populate a field in a Survey Web Page with a URL like the one below:
www.mypage.com/survey.asp?username=Bob&WO=2312
Populating the username and WO fields.
Any idea what code I need to write to make this happen?
Web Development
I need to be able to populate a field in a Survey Web Page with a URL like the one below:
www.mypage.com/survey.asp?username=Bob&WO=2312
Populating the username and WO fields.
Any idea what code I need to write to make this happen?
by nikki96
It depends on if you are using client-side javascript, which may not be available if the user has it turned off, or server-side script like ASP or JSP.
The javascript version would parse the URL querystring and populate the form fields with the values.
Examples to follow.
by nikki96
(watch for line breaks/word wrap in code)
url used: http://127.0.0.1/test.html?hotel=Test
New Document
by nikki96
test URL used: http://127.0.0.1/test.html?username=bob&WO=2317
New Document
by nikki96
ASP document.
Test URL: http://127.0.0.1/test.asp?username=bob&WO=2317
New Document
by drhue
Poster rated this answer.
by drhue
This discussion is closed to new replies.
Sort by Trending