Auto-populating an Infopath form after selecting a drop down

筅森魡賤 提交于 2019-12-11 05:07:13

问题


I currently have two lists one titled 'Book of Work' which holds details around on-going projects and the other titled 'Book of Work Amendments' which are requests submitted by users to change project details (through an infopath form).

There is a column in the BoW Amendments list entitled 'Select Project' which has a lookup to 'Project Name' in the BoW list. The aim is that when a user chooses an option from the 'Select Project' drop-down, other fields in the form such as 'Project Manager', 'Project Description' will be automatically populated with data from that row in the BoW table.

I have connected both Sharepoint Lists as data connections with BoW Amendments being the primary and BoW the secondary. If we take the Project Manager field as an example the method I have attempted is as follows:

. Create a rule with condition Select Project is not blank

. Action - Set a field's value: Field: Project Manager (BoW Amendments - Primary) Value: Project Manager (BoW - Secondary) Add Filter: Project_Name (BoW - Secondary) = Select Project (BoW - Primary)

Currently this is not populating the field when the project is selected in the drop down, any assistance would be greatly appreciated.


回答1:


You have the right idea, just a little off. You want a rule on the Select Project dropdown when "field changes".

Next create your set field value action to whatever field you want; in this case, the Project Manager field

Now set the 'value' to Project Manager (BoW-Secondary). Add filter project_name (BoW-secondary) = Project dropdown (Main)

Basically that last filter is saying "get the project manager from BoW-secondary where the project name is equal to the selected value of the project dropdown list.



来源:https://stackoverflow.com/questions/26636194/auto-populating-an-infopath-form-after-selecting-a-drop-down

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!