- June 1, 2010 at 4:34 pm #508
Is it possible to custom integrate a published form such that when it is made available on our intranet (which uses AD for authentication), it can pre-populate form fields based on the logged in user? i.e. first name, last name
AvaneeshJune 1, 2010 at 8:11 pm #5296
Yes, this is possible, and our organization does this. When our company users open a form, a hidden page collects various details about the user and this is handled each time the form is opened so that we can track who did what, and even when they did it. We use the sso, so we query using the users domain username property, but you could probably also do it with their email address if you aren’t using the sso. You would then use either a directory services connection to lookup your user or if you have your ad data in a database you could set up a connection to that as well.June 1, 2010 at 8:31 pm #5298
tmrhymer, this is what I was hoping to hear. Thanks for your help, it’s greatly appreciated.June 7, 2010 at 5:18 pm #5301
tmrhymer, I have question about how your company implemented this solution. When you say that “a hidden page collects various details about the user”, is the functionality executed client-side or server-side? The client-side script that I have found only gathers the logged in users’ username, not any additional information such as first name, last name, email, etc. (This script only works in IE, as you probably assumed)
AvaneeshJune 7, 2010 at 10:26 pm #5302
In the form there is a page I use for lots of “utility” purposes. One of those is the current user in the form. When the form opens, it grabs the current users domain username and puts it in one of the fields. Then after that, a connection command runs, which queries the rest of the information out of either active directory or a database table filtered by the domain username. It then copies the data i want to the rest of the fields I have designated for the current user. I’m not sure what script you are referring to. In perfect forms if you have sso enabled your users will have their domain username field populated, and that property is accessible in the forms in various commands under Special (User – Domain Username).
You must be logged in to reply to this topic.