Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1709
  • Last Modified:

InfoPath SharePoint List Form - Pull Record to Autofill Form

Hello,

I have a SharePoint 2010 list with a number of different fields. I'll call it the main list. I am using InfoPath to edit the NewForm.aspx page.

I have a second list that I use simply for storage. It links a serial number to the name of a product. There are just two columns, Serial Number, and Product Title.

In my main list, I ask the user for a serial number. I want to have an InfoPath rule such that when a user enters a serial number into the serial number, if it exists in the other table, it will look it up from the other table and autofill the product title for the user in the main list.

Can someone point me in the direction of the rule formula/code I would need to accomplish that?

Thanks!
Joseph Irvine
0
jkeagle13
Asked:
jkeagle13
1 Solution
 
Jamie McAllister MVPArchitectCommented:
0
 
clayfoxCommented:
You need a secondary data connection to the SP list to receive

on the serial number entry field put a rule that has the action to set a fields value
the field to set is the product name in the main list.
for the value select the FX button
then select a field and navigate to the secondary list and to the product name field.
at that point select the filter button in the lower left of the window.

add a filter
select the serial number field on the left
equals
then select a field and choose the serial number field the user entered in the main list.

that is all it takes.  It is case sensitive if you have alpha characters, but you can use a translate function if needed.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now