Submit Infopath form to a dynamic URL without code
I trying to submit an Infopath form to a Document set, the document set will be a different one for each instance of the form. How can the form be submitted to a dynamic location without using code behind? I am in SharePoint online and this is
a limitation.
Thank you
ITGirl
Hi,
If you want to submit an InfoPath form to different locations dynamically, there is no OOB approach without code, since submit option needs static URL value.
Here is a similar issue for your reference:
https://social.msdn.microsoft.com/Forums/sharepoint/en-US/1588a8d2-cb43-4090-b2c1-8835d3e8fbe3/dynamically-submit-for-document-library-using-infopath-2010
Without code, to submit form to different locations, you need to manually add submit rules per the Document Sets in your library, such as create a new column for Document sets name, then create submit rules to separately specify destination in submit options.
Here are the steps for your convenience:
1.Insert a text box named “field1” to type the names of the document sets in the InfoPath form.
2.Add a button to submit in the InfoPath form.
3.Add rules in the submit button: Add condition: “field1” is equal to “01”(the name of the document set in my environment) -> Add Submit Data in Run these actions field -> Add Data connection -> Type the URL of the document set “01” and type the
file name you want.
4.According to the different document sets you want to submit to, you could add more rules in the submit button to repeat the step 3.
Best Regards,
Dean Wang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]
Similar Messages
-
How to submit InfoPath form data to multiple SharePoint lists at one time?
Hi,
I'm looking for a way to submit certain data in InfoPath form to separate SharePoint lists at the same time. I have a form that has two views with many data in them. I want to keep these data in separate SharePoint list besides keeping them in the XML. I know that you can submit to a form library using SharePoint document library data connection, but I'm not sure if you can use several data connections for submitting data to multiple SharePoint lists. Is it only possible to do using code? If yes, can anyone show a sample. I have never coded in InfoPath, though I used C# a lot in .Net.
Thank you!Regards,
R.D.M.This is an old thread but I tripped over a codeless method to do this with OOB InfoPath 2010 and SP 2010.
Assuming your main InfoPath form is published to a document library with the promoted fields that you want to see.
Publish your form to a new document library to capture the secondary data fields that you want separated out.
Using the Publishing Wizard do the following:
Go to – File then Publish
Select SharePoint Server “ Publish form to a SharePoint Library”
Enter location of your SharePoint or InfoPath Forms Services Site:
accept the default in this field from the first published event
Next screen, keep the default or change it, Form Library, Site Content Type or Admin Approved
Next screen, What do you want to do?
Create a new form library
Add new document library name and description
Next screen, Remove all promoted fields not applicable to the new library and add all of the ones you want to see data for.
Click Next and Publish
Come back into the form: If you don’t have buttons added directly to the form to submit or update, add them.
Create a new Action rule on the button
Label the rule to keep it straight
Condition, occurs when button clicked
Add action, Submit data
Use data connection to the second library created
Create a second new Action rule on the same button
Label the rule to keep it straight
Condition, occurs when button clicked
Add action, Submit data
Use original data connection to the library
Then you can add another action to close the form or do whatever you need.
Republish the form to both libraries to set the template for both.
File – Publish – SharePoint Server
Select Secondary library from drop down follow the rest of the prompts
Follow step 5a again, select Primary library from drop down, Add back in all of the promoted fields needed for the primary library and follow the prompts.
DOCUMENT YOUR FORM WELL FOR MAINTENANCE
Special considerations, your primary library needs a unique ID to reference in your secondary library.
Your secondary library will need a unique ID that is not related to the primary if you are going to store multiple records for a single primary library reference.
Example: One form, multiple updates. -
How to Embed HTML into a Infopath form with out using the custom code???
Hi ,
This my first post in MSDN, so kindly ignore if there is any faults/mistakes.
scenario:
I am updating a HyperLink(url) to an infopath Field (Such as Rich text box /Label) from a third party workflow(Nintex),it is not able to embed the html data .is it possible to embed html controls like <a> and <Br> tags in the infopath form?????The InfoPath form can be configured to export some of the fields as columns... by doing so, the workflow can simply update the list item's metadata, and the value is pushed into the InfoPath form data.
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs -
Upload Excel data to Sharepoint list VIA infopath form
Hi,
I'll try to explain the process of what I want to do first.
1. In Excel
I have an exceldocument (XLS, XLSX or XLSM) with 4 named columns and a named worksheet saved locally on my computer.
I want to upload this data into preferably a custom list in sharepoint but it needs to run via a infopath template first.
2. In Infopath
The Infopath template will prompt the user to specify values in 2 additional fields.
After giving input to these fields user may browse for the locally stored excel document and upload the document.
In the same infopath template a dynamic array should be visible containing 6 columns (4 from excel + 2 from headerlevel of template) and the amount of rows based on the number of rows from excelsheet.
At the end of template a submit button is found for uploading the entire array into sharepoint custom list.
Is this possible to do at all?
NOTE! End user should not have to save the excelsheet as XML file nor do a XML mapping.
Infopath should, perhaps with help of VBA read excelsheet and transfer data to correct destination in sharepoint on it self.
Looking forward to your replyHi Jonas,
You can attach your Excel doucment into InfoPath form and send InfoPath form to a custom web service. Then you can parse the Excel data and combine the Excel data and additional fields into SharePoint list in the customized web service.
For more information, you can have a look at the thread:
http://dandeng.blogspot.com/2012/03/submit-infopath-form-data-to-web.html
http://www.codeproject.com/Articles/88547/Submit-entire-InfoPath-form-to-web-service
https://social.msdn.microsoft.com/Forums/office/en-US/590f1e78-5c08-47bd-8af4-9709102b568d/webservice-to-send-attachments-in-infopath-form-to-different-location?forum=sharepointcustomization
https://msdn.microsoft.com/en-us/library/office/gg575571.aspx?f=255&MSPPError=-2147217396
Best Regards,
Eric
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Updating a secondary datasource to a Sharepoint list via infopath form rules
Using SharePoint 2010 and InfoPath 2010 I created a form that prior to submission it gets an integer value from a separate SharePoint list via a secondary datasource. Just before the rule that submits the form to a document folder via the
main datasource I increment the integer value and try to write it back to the secondary datasource I got it from. I know that I have the correct value. That is, it is reading from the data source the correct integer information and it is incrementing
it in the form but when it writes the value back to the same column in the same secondary datasource it doesn't give any indication that it didn't work. But when I look at the list of the secondary data source I see that the integer value is
not updated.Hi Jonas,
You can attach your Excel doucment into InfoPath form and send InfoPath form to a custom web service. Then you can parse the Excel data and combine the Excel data and additional fields into SharePoint list in the customized web service.
For more information, you can have a look at the thread:
http://dandeng.blogspot.com/2012/03/submit-infopath-form-data-to-web.html
http://www.codeproject.com/Articles/88547/Submit-entire-InfoPath-form-to-web-service
https://social.msdn.microsoft.com/Forums/office/en-US/590f1e78-5c08-47bd-8af4-9709102b568d/webservice-to-send-attachments-in-infopath-form-to-different-location?forum=sharepointcustomization
https://msdn.microsoft.com/en-us/library/office/gg575571.aspx?f=255&MSPPError=-2147217396
Best Regards,
Eric
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Hello,
Though the article is old, I hope someone can help me. I need to do two things (on of which is partly explained here).
1.) Be able to open a fillable pdf located in a SharePoint document Library (located at the parent site level) in an InfoPath form (that itself is a browser, SharePoint document template located on a subsite). 2.) Basically, I need the form user
to be able to access the pdf while in the form, fill it in and save the filled in pdf to a SharePoint Library (where they want).
Thanks!
Jane
JELNot sure if you can do it from Infopath form, however you can write custom code in submit event and using code you can fill up the pdf form (it is as good as you are generating a pdf from data filled in on your infopath form)...check reference code here
http://www.sharepointjohn.com/sharepoint-2010-fill-out-and-flatten-pdf-forms-with-itextsharp/
Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
INSQLSERVER.COM
Mohammad Nizamuddin -
Click close button in infopath form shuld be redirect to site page not a list by default
Hi
I am custmizing a list in infopath
i created a view created by user and
i created a site page and assigned a created by user view to a webpart on this page
here i need when this list opens in edit mode , when i click close button this form shuld be redirect to site page
now its rediricting to list>all items
all items is default view for this list
adilHi adil,
According to your description, my understanding is that you wanted the redirect to another page once InfoPath form had been closed.
You can add a Content Edit web part above the InfoPath form web part with the following code:
$(document).ready(function(){
if($('#DialogFinalMessage').children().length>0)
window.location.href = "<Desired destination page URL>";
For more information:
http://shareapointkiran.blogspot.in/2011/12/infopath-form-redirect-to-any-page-once.html
Here are some similar posts for you to take a look at:
http://blogs.technet.com/b/sharepointwarrior/archive/2012/03/16/sp-2010-how-to-redirect-infopath-form-to-a-custom-thank-you-page.aspx
http://www.graphicalwonder.com/?p=666
http://social.technet.microsoft.com/Forums/en-US/1e732bb8-9090-40c4-b1a3-1dad8960c3c1/redirecting-to-the-home-page-when-clicking-on-close-button-of-the-item-in-a-list?forum=sharepointcustomizationprevious
http://social.technet.microsoft.com/Forums/en-US/69839309-d6d9-4a25-9100-82b2393f9054/click-on-infopaht-close-button-redirect-to-another-page?forum=sharepointgeneralprevious
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Send the infopath form in email through code
Hi,
I have a custom list form and on button click I need to send email with the form in the body of the mail.
Since I want to change the From Address, I cant use the email dataconnection with the infopath form.
I need to write code to send mail. But how will I get the form view as the body of the mail.
Could anyone please help me?Hi,
Are you trying to submit an Infopath form by email or are you dealing with a "List" in SharePoint that you want to email out? Would you be able to clarify?
Also, when you say you want to change the From address, will that be static or be different based on some condition/value?
Pman
http://www.pmansLab.com/ -
How to close infopath form through code?
Hi All,
How to close infopath form through code, thanks in advance!Hi Sam,
Please check if the articles below can be help:
http://www.bizsupportonline.net/browserforms/programmatically-submit-infopath-form-sharepoint-send-email-close-form.htm
http://www.bizsupportonline.net/blog/2009/01/how-to-programmatically-run-code-close-infopath-web-form/
Regards,
Rebecca Tu
TechNet Community Support -
I have created an InfoPath form that submits to a Sharepoint library with custom workflow attached. The workflow is initiated when the user submits the form. An email is sent to the supervisor who clicks the "Encoded Absolute URL" and approved
the form via the emailed form. Then, based on certain criteria the form is either emailed to the VP or the workflow is complete. The VP is sent an email and clicks the "Encoded Absolute URL" and sumbits the form via the emailed form. This is
how I would like it to work. The reality is, the form submits and is emailed to the supervisor and the supervisor is able to approve but when the form is sumbitted I get an error. The error is "InfoPath cannot submit the form. An error occured while
this form was being submitted. The form cannot be submitted to the following location: <URL> The file <URL> is checked out for editing by <me> The operation completed successfully." The operation did not complete successfully and it
is not checked out. I have read in previous posts that the file is locked. Since I am in the testing faze of the project there is no one else using the form. I have waited 24 hours and the lock has not been released. Please help!!! My deadline is growing short.I ran into your post while having a similar issue. I don't have a 'full' fix for you, but I noticed at least in our case if you made sure you opened the Infopath form through the browser instead of the client Infopath program (use the drop-down menu
and open in browser) the error doesn't occur. Hope that helps some.... -
Unable to submit any item in the form library through InfoPath form
I had created a form and link to a form library, but when i click on new document it show me this dialog box with URL
ms-infopath:nft|u|.....|s|......
and then it open InfoPath form after submitting it does't not insert any value in the Form library.
In my case
1.I want to remove ms-infopath:nft|u|.....|s|......
2. Form should open in web browser.Hi
ank89 ,
Please take steps as below:
Create a Form using SharePoint Form Library template.
After customizing the form , click File ->Publish -> SharePoint Server -> save the form -> in the Publishing Wizard page input your site URL -> provide your authentication account.
Check “Enable this form to be filled out by using a browser” and Form Library.
Select your Form Library and edit the Form Library field , then Publish it and you will get what you want.
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Manually submit a form without using javascript?
i'm trying to automate registration of a site by using java (no gui). However there is no direct submit button or form.submit() present in its registration url. Checked the javascript codes and it opens a window, and checks if the window opener is present .
if (window.opener && !window.opener.closed)
window.opener.document.theForm.submit();
window.close();
}Is there a solution for this problem?I'm trying to access an http url (not mine).
(1) By setting post variables , I can retrieve the html of the url as string. Here's the code.
static String getHtml(String url_nm, HashMap variables)
String html = "";
String data = "";
boolean firstRun = true;
if (variables != null)
Set keys = variables.keySet();
Iterator iterator = keys.iterator();
while (iterator.hasNext())
if (firstRun)
firstRun = false;
else
data += "&";
String name = iterator.next().toString();
try
data += URLEncoder.encode(name, "UTF-8") + "=" +
URLEncoder.encode(variables.get(name).toString(), "UTF-8");
catch (Exception e1)
try {
URL url = new URL(url_nm);
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
wr.write(data);
wr.flush();
BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
while ((line = rd.readLine()) != null) {
html += line;
wr.close();
rd.close();
} catch (Exception e) {
e.printStackTrace();
return html;
[/code
(2) The problem is even if i set the post variables, i cannot submit the form since the form can only be submitted if i was actually browsing it in a web browser. The html displays a window where the actual submit form is set (as you can see in my later post) . -
Filling in a PDF Form, but get "Error opening URL to submit this form" when I try to submit
I was able to fill in the form with Adobe Reader, but when I tried to Submit the form another box popped up that said "Error opening URL to submit this form." What can I do to fix this?
Nothing. Report it to the form's authors.
-
Customizing infopath form without using infopath designer in SharePoint 2013
hi friends
i need to depoly infopath from in client environment. this form fetch data from some lists.
they dont have infopath designer in their environment how can i customize my infopath form to link with those list without using infopath designer is there any way to do it.You cannot edit Infopath without using Designer.
-
Dynamic PDF Forms vs Microsoft InfoPath Forms
Can someone advice me why we should use Dynamic PDF Forms vs Microsoft InfoPath forms?
Thank youFor anyone in the future who has a similar issue, I've come up with a fairly simple workaround. It adds an extra step of work, but it allows you to continue using dynamic forms in your workflow.
The ideal solution is if your office has a server-side adobe document output service. You can push your form to the server, have it extract the data into a datawarehouse, then output a flattened .pdf. A flattened .pdf cannot be (easily) edited, and all code behind is removed. This solution is the 'best', (and it's the only way to flatten an xfa form, as far as Adobe is concerned) but it also costs some coin, especially if you don't have any existing infrastructure to support the server-side service.
The free solution (which I have opted for) is to use a virtual printer to 'print' the document to a suitable format. There are many free virtual printers out there, but I have decided to go with CutePDF Writer. I print to the CutePDF writer, and the output is, essentially, a flattened Blackberry compatible .pdf form. The only issue is that you cannot edit a flattened document (a bonus in my situation, but still something to keep in mind... You can still edit the original document, as the flattened .pdf is a copy, not a transformation.)
You can even add a print button to the form with some JavaScript to specify the printer as 'CutePDF Writer'. Altogether, it's easier than recreating all of the business forms that have been made in a static format, and you can still leverage all the benefits of a dynamic form.
I know that this isn't central to the Blackberry, and I apologize for that, but I had a rough time with this issue, and I'm hoping to help someone with the same issue in the future. Again, thanks to those who helped.
- Scott
Maybe you are looking for
-
HP Officejet Pro L7580- here's a new one for HP Mac Architect
So like all the other disgruntled HP users who foolishly installed 10.5 when it was released, I have been without a scanner ever since. Until three days ago, however, I've been able to print, as the driver for the L7580 was included in Leopard. Now,
-
Pessoal, bom dia. Alguém sabe me informar se é possível importar o plano de contas de uma base e importar em outra, utilizando outra forma sem ser gerar um script do banco de dados e executar na outra base. Obrigado.
-
Ipad 3 is syncing only one way with outlook 2010
I am seeing calendar items that I add in Outlook 2010 added to the Ipad. However, appointments added in Ipad are not being added to Outlook. I have not checked contacts (All were added to the Ipad).But I have not tried adding a new contact yet. Is th
-
From table hard coded in query
(1)The below query i have encounterd in the code for which i m handling CR. kindly help me in understanding what does it means FROM TABLE inthe below query.. select distinct transport_mode, orgp_id_2 into p_transport_mode, p_consignee_id from packing
-
Some hackers hacked my photo app i think and is getting nude pictures of an actor does anyone have the same problem and found a solution please tell