Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

InfoPath

Microsoft InfoPath is a software application for designing, distributing, filling and submitting electronic forms containing structured data. The product features a WYSIWYG form designer in which the various controls (e.g. textbox, radio button, checkbox) are bound to data, represented separately as a hierarchical tree view of folders and data fields. All the data stored in InfoPath forms are stored in an XML format. Secondary data sources can be built into the form or they can be accessed through an external data connection to SharePoint or a Web service.

Share tech news, updates, or what's on your mind.

Sign up to Post

I need to build a set of 1 or more InfoPath documents based upon some business criteria going against a related list of recipients of the document.

I have it working using the following function.  Part of the process of building the function is to copy a base (template) XML file down from the document library, turn it into a string with one or more parameters that I insert into that string, and then write the string to content object, upload to the library and then the XML file is available and loads in InfoPath within a browser.

The form has a repeating table which if I populate the form with, the function fails after I take that XML file and use it as the template in my function.

Code follows with abbreviated XML variable as it is too long:
	 function createFile(pParam1, pParam2) {
		var clientContext;
		var oWebsite;
		var oList;
		var fileCreateInfo;
		var fileContent;
		
		var sfileName = "FileNamePrefix_" + pParam1 + "_.xml";
						
		try{
			clientContext = new SP.ClientContext.get_current();
			oWebsite = clientContext.get_web();
			oList = oWebsite.get_lists().getByTitle("RecType SubType");   
			
			var FoundFile = CheckForDoc(sfileName, false);
			var newTemplate = 
			'\n<?xml version="1.0" encoding="utf-8"?><?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:RecType-Audits:-myXSD-2017-07-01T00-23-25" solutionVersion="1.0.0.502" productVersion="16.0.0.0" PIVersion="1.0.0.0" 

Open in new window

0
New benefit for Premium Members - Upgrade now!
LVL 10
New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Hi,
I am currently using Infopath 2013 which is connected into a SQL server Db, My Infopath Form has three fields:

Start_Time - DateTime
Stop_Time - DateTime
Duration - Integer

I am having trouble referencing these fields in visual studio using VB as it doesn't seem to recognise these as actual fields within the Infopath Form as the Duration field just stays blank with no errors?

Basically i'm looking to do this as an After Change event set on Stop_Time:

Duration = DateDiff("s", Start_Time, Stop_Time)

Open in new window


Very very basic VB knowledge here so any help you can give me will be much appreciated.
0
I have 2 forms for 1 workflow. When I run form A, the workflow runs successfully. But when I run form B, the workflow seems to stuck in In-Progress. Please could someone help and tell me why this happens and what I can do for future occurrence? Thanks Augustine
0
I have an InfoPath form with a repeating table which has a dropdown.  I can add rows and set different values per row dropdown and save and reload the xml document and the rows and values are there.

I need to be able to do three things with the repeating table:
Read the rows and specifically the value of the dropdown
Add rows and set the value of the dropdown
Modify a row and set its value of the dropdown

I need to do all this within a Nintex Workflow.

Please advise.
0
The title pretty much says it all.  I have an InfoPath document library and I need to set a column within the the InfoPath/XML file to a particular value.  The column is simple text.

Any ideas/links on this would be greatly appreciated.
0
Hi all Am working on SharePoint 2010. I have created a InfoPath form through list. I am trying to implement "Save and Continue" while the form is open and continue my work saving the information I have entered in the form. Everything works fine for the first click on Save and Continue. But when I try to do some changes and click on the "Save and Continue" it throws me the below error. " The form cannot be submitted. Save Conflict. Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes." Can some one suggest me on this. I am not a pro in InfoPath forms and trying to explore more and learn things. thanks all.
0
I need to make sure that if a particular value is set in a dropdown that a textbox has some text explaining why the other value is set.  It almost works.  What I did is as follows:
On the data tab,  I selected Submit Options and said to allow Perform custom action using rules
At that point the Forms Submit button was enabled and I added a rule as follows
If SomeDropDown has "SomeValue" and "RelatedTextBox" is not blank allow the submit.

It works in the sense that it won't save the form without the related text if the dropdown has "SomeValue", but it doesn't stick on the page with a message to fix it and just closes as though it is saving the data.  When I do enter "SomeValue" the form saves as expected.

What am I missing and how do I get the "error" condition to appear?
0
I have an InfoPath form with a section with repeating tables and it works up to a point.  But some of the columns share the same values when I change them on a row.

Here is the design view:
dev
Here is at runtime:
Run
Please advise/point me to some useful samples/tutorials on this.
0
Does anyone know where I can download a free, safe version of InfoPath filler 2010?
0
I have a "Start Date" column that is a single line of text and displays a value from an InfoPath date control .
In a workflow, I need to compare that value with "now" and if it is greater than or equal to "now" initiate a task.

The Now workflow variable gets it's value at the start of the WF as follows:
Set "CurrentTime" to Current Item:Modified and has the value in the format m/d/yyyy hh:mm A.
The "Start Date" column show the date string as yyyy-mm-dd

As a result of these differences, they never compare equal.

So,  I tried to build a Year variable, a Month variable and a Day variable from the Current Item:Modified column as follows:
  1. Copy from Current Item:Modified, starting at 1 for 4 characters (Output to Variable:CurrentYear)
  2. Copy from Current Item:Modified, starting at 6 for 2 characters (Output to Variable:CurrentMonth)
  3. Copy from Current Item:Modified, starting at 9 for 2 characters (Output to Variable:CurrentDay)
Thinking I can build a string in the format yyyy-mm-dd and then use that for compares.  I don't find a way to build this string nor am I sure if my approach will work.

Any advise on this would be appreciated.
0
Free Tool: ZipGrep
LVL 10
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

I have a document library ("A")  and an InfoPath form that saves .xml files to that document library.  This works fine.  So,  I want to have a secondary library that I will transition xml files to via a workflow.

My first step was to create a template from the document library "A" and use that to create document library "B".  I have done that and I have the second library ("B") with the same columns as "A".  I can create xml files in either "A" or "B" and info path works as expected saving the document to the library where it was created (that's the key...).

Now I added a Workflow (SharePoint 2013) which looks at Modified documents in "A".  If a column has the value "Move to B",  the workflow copies the xml file to "B" and deletes it from "A".  That works.  Here comes the problem...

If I go to library "B" and edit the moved document in IE and change that column value to "Whatever",  the document in library "B" shows no change to that column and the xml document is being saved back to Document Library "A" with the column value set to "Whatever".

What is going on? What am I missing? How do I fix this?
0
I successfully created a content type to be used for an InfoPath Form Document Library. However when I try to link that content type to the document library, I do not see "Add from existing site content types" link in the library settings. I checked various other places throughout the site and this link is not available in any library settings. Can someone explain?
0
When starting to use infopath, the idea was to ensure that information was submitted so that only a selection of people can view the data on a database. The database is located on another folder that has to have access granted by IT. The issue is that no one but those who had access to the database folder could submit data. I have had to move the database into an accessible area which was not the reason I went along the infopath route.
Any help??
0
Hi,

I have created form and I have XML file as secondary data to fill out the form.... And now I am not able to publish the form, I am encountered an error showing as restrictions of data connection.....i have not created sharepoint as I am new to infopath I have no idea how to do that... and I am not using any internet.....
Could you please help to publish this as its very important form for me..
Rrgards
Nagaraj Arali
0
I have been looking hi and low to auto populate user name and department in InfoPath browser form from several sources available
I tried User Profile Service but since Microsoft made it difficult in 2013 version and I am not an admin on the host I can't use this.
 I also tried User Information list. It worked perfectly in InfoPath preview but came up empty when I published the form.

So I tried to use JQuery and SP services. I captured all info in alarms correctly but cant figure out how actually place it in form controls. I use text boxes for all.
<script src="/sites/MySite/SiteCollectionDocuments/jQuery/jquery-1.8.2.min.js" type="text/javascript"></script><script src="/sites/MySite/SiteCollectionDocuments/jQuery/jquery.SPServices-2014.01.min.js" type="text/javascript">
</script><script type="text/javascript">

$(function() {        
     var thisUsersValues = $().SPServices.SPGetCurrentUser({
      fieldNames: ["Title", "EMail", "Office", "WorkPhone"],
      debug: false
});
alert(thisUsersValues.EMail);


alert(thisUsersValues.Title);
alert(thisUsersValues.Office);

alert(thisUsersValues.WorkPhone);

$('textarea[title="WorkPhone"]').thisUsersValues.WorkPhone;
$('input[title="WorkPhone"]').thisUsersValues.WorkPhone;
});
</script>
0
I am developing a questionnaire for internal use and looking at various methods of doing so.

The question will have various free text entries, some date pickers and most importantly 12 Yes / No questions.

I have currently looked at 3 applications for this questionnaire and each seems to have a downfall with the 12 questions.

InfoPath
This application seems ideal as I can set the Yes / No options such that they can be only Yes / No and I can count the number of Yes answers for an automated decision based on the questions. The decision can then determine the Submission route/email. I can use Validation rules to check entries before submission.
Downfall - no longer provided after Office 2013 but I hear that something similar may be available through SharePoint. Our organisation does not use SharePoint.

MS Word
Format of questionnaire is easy to manage with tables.
I can insert Check Box option buttons but they are not related to each other, ie I can insert two check boxes in a table alongside the question, one each for Yes or No answers but the user can check both. The count of the check boxes has to be done manually to make the routing decision. The Word document has to be saved and emailed manually.

MS Excel
Similar issue with option buttons as MS Word. If I insert option buttons on a sheet, they all become related and I can only select one button. I can get round this by putting the pairs of buttons on separate sheets ie one question …
0
hi!
There are a lot of info on Internet about auto populating the InfoPath form with information pulled via SOAP Web Server from UserProfileServices. Unfortunately I get error message:
An error occurred accessing a data source.

An entry has been added to the Windows event log of the server.

Log ID:5566

Looking for a solution I found that I need to change data in Administration of the site which I can't do.

I tried to auto populate user information (Name, phone, email) by using User Information List from my site. It does populate my info in the NewForm but everybody else gets my name too instead of theirs.

Why does it happens?
0
I migrated a site and when I try to open an InfoPath form it's fine in InfoPath, but when I open it in the browser it fails with a correlation error.  It worked at the original site both within InfoPath and also a browser.

I haven't a clue what to do or make of the error.

Here is the correlation id :a76a059e-d08c-4000-2beb-46837449762c

Also of note (major) is that the error says it cannot open up the form and the URL includes the migrated site name.  This must be the issue, but I don't see where I can correct that.

Please advise and thanks.
0
I need to create a set of InfoPath forms and upload them with updated data to a document library.  I have put together some JavaScript which accomplishes this, but the upload of the document (InfoPath doc) is async and the code works fine when I run it in the debugger, but if I run the loop with no breakpoints, the browser hangs on the create/upload of the file.

I am not sure if it is that the function is async or that it appears to be CSOM whereas all my other code is using REST.  

Any help/ideas on this would be greatly appreciated.
0
New feature and membership benefit!
LVL 10
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Using a web part query filter and a connected InfoPath webpart/form, I can pass a query param from the URL to the web part.  There are two problems from there:
1) When the form first loads, it doesn't show the query param value.  If I add a button to the form and after the form appears click the button, I can then see the value does get passed in.  I can't use a button for this and why doesn't it appear when the form load rule says to show it?
2) On that form I have a dropdown tied to a SharePoint listbox with the display equal to title and value = ID.  How can I have the dropdown on load show one of it's items as the selected one?
0
I have what I consider to be a challenging task.  I have a SharePoint list which I display for editing with an InfoPath form.  I have another list which is a set of actions possible which I need to relate to the list item in edit and saves.

So, the master list can have a set of action list items which need to get added/removed from association with each list item.  The display should show the Master Record with a grid (or something like a grid) below of action listitems associated with the list item.

How to manage this in SharePoint?  Do I create an empty list matching the action list structure with the ID of the master list item as  a "foreign key" and show the action items with matching Master List Item IDs?  If so,  how do I display with add/delete of the related grid on the Master Record InfoPath form and add and remove items from the cloned empty action list?

Any ideas on this would be appreciated.
0
I would like to redirect InfoPath to a menu page on my SharePoint Site.  At the moment, when it closes it goes to the list which can be okay, but not in my case.

I notice the the URL has a List=some string of values and then the ID=some number for the list item if it's an edit,  and some other parameter that looks sort of like a link to where to go after the form closes.

Any help on this would be appreciated.
0
I created an InfoPath 2013 Form and it is located in a SharePoint 2013 Document Library. This is an HR form for employee change request. The idea is to have the employee go to the doc library and select new document, then complete the form, but instead of submitting the form to the same library, which is the way it is setup right now, rather I need to configure this form to submit to a different document library. The other library will be secure, so that an employee cannot view sensitive data. I looked at other knowledge based articles but could not find a solution for particular for this issue, unless I missed something.

The first document library is open to all employees, but the submit to document library is secure, only for HR use. Is it possible to accomplish this type of configuration in either InfoPath or Sharepoint?

FYI - I'm a beginner with InfoPath and SharePoint.
0
I have a SharePoint 2016 Site Collection.  In this collection I created a custom content type with Item as the parent.  To that custom type I added a couple of choice columns.

Now I go to a list and list/settings/advanced and turn on Managed Data. After that I go into the list settings again and add this content type.  So, now I see other columns which I can then use on the list.  Ok, that seems to work.

But,  when I launch InfoPath to create a form to Create/Edit list items for this list, none of the custom content type columns show up.

Any advise on this would be appreciated.
0
I have been trying to build some basic info path forms in SharePoint 2016.  So far no luck.  I tried one with a custom content type and that failed to publish and then an even simpler form that has a text field and not much else.  It failed too.  

Here is the screen shot showing the InfoPath "USELESS" message on attempting to publish;

InfoBlath
Please advise.
1

InfoPath

Microsoft InfoPath is a software application for designing, distributing, filling and submitting electronic forms containing structured data. The product features a WYSIWYG form designer in which the various controls (e.g. textbox, radio button, checkbox) are bound to data, represented separately as a hierarchical tree view of folders and data fields. All the data stored in InfoPath forms are stored in an XML format. Secondary data sources can be built into the form or they can be accessed through an external data connection to SharePoint or a Web service.

Top Experts In
InfoPath
<
Monthly
>