Search - InfoPath Dev Sign in | Join | Help InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads Search More Search Options Page 1 of 1 (6 items) Re: Questions: If/then in default value and AD username lookup OK! I think I have something working now. Tell me if you can think of any obstacles I could run into. After reading through the comments of blog post you linked earlier, I saw someone suggest creating a second GUPBN data source, titled GUPBNMGR, then assigning the AccountName of that data source to the username of the manager. Using what you ... Posted to Newbie Questions (Forum) by gschwendt on 07-01-2008 Re: Questions: If/then in default value and AD username lookup To get the current user's information, I'm simply using text boxes with the default fields set to something similar to these (depending on the field) Value[Name = "AccountName"] Value[Name = "WorkEmail"] Value[Name = "Manager"] Value[Name = "SPS-Dotted-line"] Here are the ... Posted to Newbie Questions (Forum) by gschwendt on 07-01-2008 Re: Questions: If/then in default value and AD username lookup [quote user="Hilary Stoupa"] I may be starting to get this, sorry to be so slow! What you are getting from GetUserProfileByName is all your current user info, right? and you need to basically query the same web service again with the name of the manager to get the info for the manager? [/quote]Exactly! But one thing to note, it ... Posted to Newbie Questions (Forum) by gschwendt on 07-01-2008 Re: Questions: If/then in default value and AD username lookup [quote user="Hilary Stoupa"] I see. Yes, you probably have a filter issue. Let's say you want to put the manager email into field1 in your form and that the current username is in field2. Right click field1, select properties, and in the default value field select the formula button. Then, in the Insert Formula window, select the ... Posted to Newbie Questions (Forum) by gschwendt on 07-01-2008 Re: Questions: If/then in default value and AD username lookup Thanks... at first glance I think I follow the logic fairly well but if I run into any issues implementing it I'll come back and let you know. As for question 2, basically for the submittor of the form, I'm pulling their user information from Sharepoint (username, workemail, firstname, lastname, manager (username), sps-dotted-line ... Posted to Newbie Questions (Forum) by gschwendt on 07-01-2008 Questions: If/then in default value and AD username lookup Hi... newbie here of course; I have two questions. I don't have very much programming experience so would prefer not to go that direction if possible. 1.) How can I fill in the default value of a text field using an if/then sort of statement? I searched but the only response I found talked about using the OR | but didn't ... Posted to Newbie Questions (Forum) by gschwendt on 06-30-2008 Page 1 of 1 (6 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.